mirror of
https://github.com/koush/scrypted.git
synced 2026-03-16 23:22:07 +00:00
ui: add device management button
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user