Update deps & fix lint issues

This commit is contained in:
Bastien Wirtz
2020-10-23 15:24:16 -07:00
parent c368290e32
commit ed8b17e0df
8 changed files with 1270 additions and 994 deletions

View File

@@ -1,6 +1,6 @@
<template>
<a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
<span><i :class="['fas', 'fa-fw', value ? icon : iconAlt]"></i></span>
<span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span>
<slot></slot>
</a>
</template>
@@ -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]);