Merge SettingsManager and SystemControl Things.
This commit is contained in:
parent
bed59c051b
commit
be94df7c8a
7 changed files with 57 additions and 65 deletions
|
|
@ -76,7 +76,7 @@ export default {
|
|||
|
||||
async mounted() {
|
||||
let version_data = await this.readThingProperty(
|
||||
"settings",
|
||||
"system",
|
||||
"version_data"
|
||||
);
|
||||
this.version = version_data.version;
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@
|
|||
</p>
|
||||
<div class="buttons">
|
||||
<button
|
||||
v-show="'shutdown' in things.system_control.actions"
|
||||
v-show="'shutdown' in things.system.actions"
|
||||
class="uk-button uk-button-primary uk-width-1-3"
|
||||
@click="systemRequest('shutdown')"
|
||||
>
|
||||
Shutdown
|
||||
</button>
|
||||
<button
|
||||
v-show="'reboot' in things.system_control.actions"
|
||||
v-show="'reboot' in things.system.actions"
|
||||
class="uk-button uk-button-primary uk-width-1-3"
|
||||
@click="systemRequest('reboot')"
|
||||
>
|
||||
|
|
@ -55,7 +55,7 @@ export default {
|
|||
this.$store.commit("wot/deleteAllThingDescriptions");
|
||||
// Post and silence errors
|
||||
axios
|
||||
.post(this.thingActionUrl("system_control", action))
|
||||
.post(this.thingActionUrl("system", action))
|
||||
.catch(() => {});
|
||||
},
|
||||
() => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue