From 5db2414d052af629e2848f53ce9c2e0e686eefaf Mon Sep 17 00:00:00 2001
From: Aryess <yoann.celton@gmail.com>
Date: Tue, 12 Oct 2021 11:28:41 +1100
Subject: Fix #121 - Change default theme and layout from config

---
 src/components/SettingToggle.vue | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/components/SettingToggle.vue')

diff --git a/src/components/SettingToggle.vue b/src/components/SettingToggle.vue
index 985ca84..6c8a10f 100644
--- a/src/components/SettingToggle.vue
+++ b/src/components/SettingToggle.vue
@@ -12,6 +12,7 @@ export default {
     name: String,
     icon: String,
     iconAlt: String,
+    defaultValue: Boolean,
   },
   data: function () {
     return {
@@ -24,6 +25,8 @@ export default {
 
     if (this.name in localStorage) {
       this.value = JSON.parse(localStorage[this.name]);
+    } else {
+      this.value = this.defaultValue;
     }
 
     this.$emit("updated", this.value);
-- 
cgit v1.2.3

