aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/PiHole.vue
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-09-13 13:09:40 -0700
committerGitHub <noreply@github.com>2021-09-13 13:09:40 -0700
commit92d5b8d424cbd4c227c9c76931930787deec4a2f (patch)
treeaa52c1955c9cf210bd95ad32e20f1b4286f7c0a7 /src/components/services/PiHole.vue
parent97f0c43ccc724ec4502e55f73874a89f822f0a81 (diff)
parent55c3ea4d92b0c5628ead4475ae7359bbf2cc59c4 (diff)
downloadhomer-92d5b8d424cbd4c227c9c76931930787deec4a2f.tar.gz
homer-92d5b8d424cbd4c227c9c76931930787deec4a2f.tar.zst
homer-92d5b8d424cbd4c227c9c76931930787deec4a2f.zip
Merge branch 'main' into main
Diffstat (limited to 'src/components/services/PiHole.vue')
-rw-r--r--src/components/services/PiHole.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/services/PiHole.vue b/src/components/services/PiHole.vue
index a9fd369..87f7090 100644
--- a/src/components/services/PiHole.vue
+++ b/src/components/services/PiHole.vue
@@ -64,7 +64,9 @@ export default {
64 methods: { 64 methods: {
65 fetchStatus: async function () { 65 fetchStatus: async function () {
66 const url = `${this.item.url}/api.php`; 66 const url = `${this.item.url}/api.php`;
67 this.api = await fetch(url) 67 this.api = await fetch(url, {
68 credentials: "include",
69 })
68 .then((response) => response.json()) 70 .then((response) => response.json())
69 .catch((e) => console.log(e)); 71 .catch((e) => console.log(e));
70 }, 72 },
@@ -83,13 +85,13 @@ export default {
83 &.enabled:before { 85 &.enabled:before {
84 background-color: #94e185; 86 background-color: #94e185;
85 border-color: #78d965; 87 border-color: #78d965;
86 box-shadow: 0 0 4px 1px #94e185; 88 box-shadow: 0 0 5px 1px #94e185;
87 } 89 }
88 90
89 &.disabled:before { 91 &.disabled:before {
90 background-color: #c9404d; 92 background-color: #c9404d;
91 border-color: #c42c3b; 93 border-color: #c42c3b;
92 box-shadow: 0 0 4px 1px #c9404d; 94 box-shadow: 0 0 5px 1px #c9404d;
93 } 95 }
94 96
95 &:before { 97 &:before {