More consitent use of mixins for interaactiong with thing descriptions

This commit is contained in:
Julian Stirling 2025-11-05 17:05:34 +00:00
parent 40b3d993ee
commit 1ba1a3082b
9 changed files with 45 additions and 29 deletions

View file

@ -10,7 +10,7 @@
</p>
<div class="buttons-container">
<button
v-show="'shutdown' in things.system.actions"
v-show="shutdownAvailable"
class="uk-button uk-button-primary uk-width-1-3 shutdown-button"
@click="systemRequest('shutdown')"
>
@ -42,8 +42,8 @@ export default {
},
computed: {
things: function () {
return this.$store.getters["wot/thingDescriptions"];
shutdownAvailable() {
return this.thingActionAvailable("system", "shutdown");
},
},