From ed8b17e0df7ffa64e392bacbd2abf6492fdfb3f1 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Fri, 23 Oct 2020 15:24:16 -0700 Subject: Update deps & fix lint issues --- src/components/SettingToggle.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/components/SettingToggle.vue') diff --git a/src/components/SettingToggle.vue b/src/components/SettingToggle.vue index ffc91a1..985ca84 100644 --- a/src/components/SettingToggle.vue +++ b/src/components/SettingToggle.vue @@ -1,6 +1,6 @@ @@ -15,13 +15,12 @@ export default { }, data: function () { return { + secondaryIcon: null, value: true, }; }, created: function () { - if (!this.iconAlt) { - this.iconAlt = this.icon; - } + this.secondaryIcon = this.iconAlt || this.icon; if (this.name in localStorage) { this.value = JSON.parse(localStorage[this.name]); -- cgit v1.2.3