Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ› Fixed Pi Hole key not read from env var (#1934)

Alicia Sykes50c9ecd0164e
diff --git a/src/components/Widgets/PiHoleTopQueries.vue b/src/components/Widgets/PiHoleTopQueries.vue
index 850cafab..bc533015 100644
--- a/src/components/Widgets/PiHoleTopQueries.vue
+++ b/src/components/Widgets/PiHoleTopQueries.vue
@@ -25,9 +25,9 @@ export default {
computed: {
/* Let user select which comic to display: random, latest or a specific number */
hostname() {
- const usersChoice = this.parseAsEnvVar(this.options.hostname);
+ const usersChoice = this.options.hostname;
if (!usersChoice) this.error('You must specify the hostname for your Pi-Hole server');
- return usersChoice;
+ return usersChoice || 'http://pi.hole';
},
apiKey() {
const usersChoice = this.parseAsEnvVar(this.options.apiKey);
diff --git a/src/components/Widgets/PiHoleTraffic.vue b/src/components/Widgets/PiHoleTraffic.vue
index d50cd7cc..63a12a95 100644
--- a/src/components/Widgets/PiHoleTraffic.vue
+++ b/src/components/Widgets/PiHoleTraffic.vue
@@ -19,9 +19,9 @@ export default {
computed: {
/* Let user select which comic to display: random, latest or a specific number */
hostname() {
- const usersChoice = this.parseAsEnvVar(this.options.hostname);
+ const usersChoice = this.options.hostname;
if (!usersChoice) this.error('You must specify the hostname for your Pi-Hole server');
- return usersChoice;
+ return usersChoice || 'http://pi.hole';
},
apiKey() {
const usersChoice = this.parseAsEnvVar(this.options.apiKey);