mirror of
https://github.com/koush/scrypted.git
synced 2026-02-10 17:22:03 +00:00
ui: add device management button
This commit is contained in:
2
external/ring-client-api
vendored
2
external/ring-client-api
vendored
Submodule external/ring-client-api updated: 6410921348...d048cdd90b
2
external/werift
vendored
2
external/werift
vendored
Submodule external/werift updated: 308d4a9310...800f4e392e
@@ -212,6 +212,15 @@
|
||||
|
||||
<v-btn color="info" text @click="openConsole">Console</v-btn>
|
||||
|
||||
<v-tooltip bottom v-if="device.info.managementUrl">
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn x-small v-on="on" color="info" text @click="openManagementUrl"
|
||||
><v-icon x-small>fa-wrench</v-icon></v-btn
|
||||
>
|
||||
</template>
|
||||
<span>Open Device Management Url</span>
|
||||
</v-tooltip>
|
||||
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn x-small v-on="on" color="info" text @click="openRepl"
|
||||
@@ -650,6 +659,9 @@ export default {
|
||||
this.$vuetify.goTo(this.$refs.consoleEl);
|
||||
}
|
||||
},
|
||||
openManagementUrl() {
|
||||
window.open(this.device.info.managementUrl);
|
||||
},
|
||||
async openRepl() {
|
||||
this.showRepl = !this.showRepl;
|
||||
if (this.showRepl) {
|
||||
|
||||
@@ -80,6 +80,7 @@ import {
|
||||
faHistory,
|
||||
faCalendarAlt,
|
||||
faShieldAlt,
|
||||
faWrench,
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
import {
|
||||
@@ -166,6 +167,7 @@ const icons =[
|
||||
faTimes,
|
||||
faCalendarAlt,
|
||||
faShieldAlt,
|
||||
faWrench,
|
||||
];
|
||||
|
||||
for (var icon in icons) {
|
||||
|
||||
Reference in New Issue
Block a user