mirror of
https://github.com/romancm/gamebrary
synced 2025-02-16 11:08:24 +00:00
set logo to dark by default
This commit is contained in:
parent
3c5ff6f925
commit
adecfbadd7
1 changed files with 1 additions and 13 deletions
|
@ -1,8 +1,7 @@
|
|||
<template lang="html">
|
||||
<nav class="position-fixed d-flex flex-column p-0 vh-100 text-center">
|
||||
<router-link :to="{ name: 'dashboard' }" class="mt-2 mb-3">
|
||||
<!-- TODO: use svg, change color based on theme -->
|
||||
<img :src="logoUrl" width="32" />
|
||||
<img src="/static/gamebrary-logo-dark.png" width="32" />
|
||||
</router-link>
|
||||
|
||||
<template v-if="hasMultipleBoards">
|
||||
|
@ -104,17 +103,6 @@ export default {
|
|||
...mapState(['board', 'user', 'notification', 'settings']),
|
||||
...mapGetters(['sortedBoards']),
|
||||
|
||||
logoUrl() {
|
||||
const { settings } = this;
|
||||
|
||||
// TODO: use optional chaining
|
||||
const noTheme = Boolean(settings && !settings.theme);
|
||||
const darkTheme = Boolean(settings && settings.theme && settings.theme.dark);
|
||||
const isDark = noTheme || darkTheme;
|
||||
|
||||
return `/static/gamebrary-logo${isDark ? '' : '-dark'}.png`;
|
||||
},
|
||||
|
||||
routeName() {
|
||||
return this.$route.name;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue