diff options
Diffstat (limited to 'src/components/services/PiHole.vue')
-rw-r--r-- | src/components/services/PiHole.vue | 8 |
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 { |