diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-12-07 22:53:55 -0800 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-12-07 22:53:55 -0800 |
commit | 12063dafef3d9028345801c7b17c1dabcc1113b0 (patch) | |
tree | 045a8a3422af7feffe38c6694ee01d2961e77f81 /src/components | |
parent | 2bd57d17fd5af26fd014b653ac97e58d2fc3c52b (diff) | |
download | homer-12063dafef3d9028345801c7b17c1dabcc1113b0.tar.gz homer-12063dafef3d9028345801c7b17c1dabcc1113b0.tar.zst homer-12063dafef3d9028345801c7b17c1dabcc1113b0.zip |
Apply lint fix
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/AdGuardHome.vue | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/services/AdGuardHome.vue b/src/components/services/AdGuardHome.vue index 3ce56dd..9c6eb34 100644 --- a/src/components/services/AdGuardHome.vue +++ b/src/components/services/AdGuardHome.vue | |||
@@ -18,7 +18,11 @@ | |||
18 | <p class="title is-4">{{ item.name }}</p> | 18 | <p class="title is-4">{{ item.name }}</p> |
19 | <p class="subtitle is-6">{{ item.subtitle }}</p> | 19 | <p class="subtitle is-6">{{ item.subtitle }}</p> |
20 | </div> | 20 | </div> |
21 | <div v-if="status" class="status" v-bind:class="status.protection_enabled ? 'enabled' : 'disabled'"> | 21 | <div |
22 | v-if="status" | ||
23 | class="status" | ||
24 | v-bind:class="status.protection_enabled ? 'enabled' : 'disabled'" | ||
25 | > | ||
22 | {{ status.protection_enabled }} | 26 | {{ status.protection_enabled }} |
23 | </div> | 27 | </div> |
24 | </div> | 28 | </div> |
@@ -47,9 +51,9 @@ export default { | |||
47 | }, | 51 | }, |
48 | methods: { | 52 | methods: { |
49 | fetchStatus: async function () { | 53 | fetchStatus: async function () { |
50 | this.status = await fetch(`${this.item.url}/control/status`).then((response) => | 54 | this.status = await fetch( |
51 | response.json() | 55 | `${this.item.url}/control/status` |
52 | ); | 56 | ).then((response) => response.json()); |
53 | }, | 57 | }, |
54 | }, | 58 | }, |
55 | }; | 59 | }; |