2 <a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
3 <span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span>
10 name: "SettingToggle",
22 created: function () {
23 this.secondaryIcon = this.iconAlt || this.icon;
25 if (this.name in localStorage) {
26 this.value = JSON.parse(localStorage[this.name]);
29 this.$emit("updated", this.value);
32 toggleSetting: function () {
33 this.value = !this.value;
34 localStorage[this.name] = this.value;
35 this.$emit("updated", this.value);