π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π 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.vueindex 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.vueindex 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);