1
0
mirror of https://github.com/taigrr/homer synced 2025-01-18 04:53:12 -08:00

chore: cleans up linter issues

This commit is contained in:
Tai Groot 2020-10-26 03:14:25 -07:00
parent 6b17544aa0
commit 188bcb4f21
Signed by: taigrr
GPG Key ID: D00C269A87614812
2 changed files with 7 additions and 5 deletions

View File

@ -11,7 +11,9 @@
<script>
export default {
name: "Darkmode",
props: ["isDark"],
props: {
isDark: Boolean,
},
created: function () {
let isDark =
"overrideDark" in localStorage

View File

@ -1,6 +1,8 @@
<template>
<a v-on:click="toggleLayout()" class="navbar-item is-inline-block-mobile">
<span><i :class="['fas', 'fa-fw', vlayout ? icon : secondaryIcon]"></i></span>
<span>
<i :class="['fas', 'fa-fw', vlayout ? icon : secondaryIcon]"></i>
</span>
<slot></slot>
</a>
</template>
@ -25,9 +27,7 @@ export default {
if (this.name in localStorage) {
vlayout = JSON.parse(localStorage[this.name]);
} else {
vlayout = this.vlayout === null
? true
: this.vlayout;
vlayout = this.vlayout === null ? true : this.vlayout;
}
this.$emit("updated", vlayout);