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> <script>
export default { export default {
name: "Darkmode", name: "Darkmode",
props: ["isDark"], props: {
isDark: Boolean,
},
created: function () { created: function () {
let isDark = let isDark =
"overrideDark" in localStorage "overrideDark" in localStorage

View File

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