mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-01-27 08:18:53 +01:00
Apply lint fix
This commit is contained in:
parent
2bd57d17fd
commit
12063dafef
@ -18,7 +18,11 @@
|
|||||||
<p class="title is-4">{{ item.name }}</p>
|
<p class="title is-4">{{ item.name }}</p>
|
||||||
<p class="subtitle is-6">{{ item.subtitle }}</p>
|
<p class="subtitle is-6">{{ item.subtitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="status" class="status" v-bind:class="status.protection_enabled ? 'enabled' : 'disabled'">
|
<div
|
||||||
|
v-if="status"
|
||||||
|
class="status"
|
||||||
|
v-bind:class="status.protection_enabled ? 'enabled' : 'disabled'"
|
||||||
|
>
|
||||||
{{ status.protection_enabled }}
|
{{ status.protection_enabled }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -47,9 +51,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchStatus: async function () {
|
fetchStatus: async function () {
|
||||||
this.status = await fetch(`${this.item.url}/control/status`).then((response) =>
|
this.status = await fetch(
|
||||||
response.json()
|
`${this.item.url}/control/status`
|
||||||
);
|
).then((response) => response.json());
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user