mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
switch logo
This commit is contained in:
parent
90806206f5
commit
c508c1e414
3 changed files with 9 additions and 3 deletions
|
@ -7,7 +7,12 @@
|
|||
:to="{ name: 'home' }" :disabled="waiting"
|
||||
exact exact-active-class="active"
|
||||
>
|
||||
<img alt="Yunohost logo" src="./assets/logo.png">
|
||||
<span v-if="theme == true">
|
||||
<img alt="Yunohost logo" src="./assets/logo_light.png" width="40">
|
||||
</span>
|
||||
<span v-else>
|
||||
<img alt="Yunohost logo" src="./assets/logo_dark.png" width="40">
|
||||
</span>
|
||||
</b-navbar-brand>
|
||||
|
||||
<b-navbar-nav class="ml-auto">
|
||||
|
@ -93,7 +98,8 @@ export default {
|
|||
'routerKey',
|
||||
'transitions',
|
||||
'transitionName',
|
||||
'waiting'
|
||||
'waiting',
|
||||
'theme'
|
||||
])
|
||||
},
|
||||
|
||||
|
@ -154,7 +160,7 @@ export default {
|
|||
this.$store.commit('SET_SPINNER', 'spookycat')
|
||||
}
|
||||
|
||||
document.documentElement.setAttribute('data-theme', localStorage.getItem('theme') === "true" ? 'darkMode' : '') // updates the data-theme attribute
|
||||
document.documentElement.setAttribute('data-theme', localStorage.getItem('theme')) // updates the data-theme attribute
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
BIN
app/src/assets/logo_light.png
Normal file
BIN
app/src/assets/logo_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Loading…
Add table
Reference in a new issue