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