forked from AkkomaGang/akkoma-fe
added "settings saved" notice back
This commit is contained in:
parent
e7ba4255bb
commit
6a4ad1fe62
2 changed files with 22 additions and 0 deletions
|
@ -25,6 +25,9 @@ const SettingsModalContent = {
|
||||||
ThemeTab
|
ThemeTab
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
currentSaveStateNotice () {
|
||||||
|
return this.$store.state.interface.settings.currentSaveStateNotice
|
||||||
|
},
|
||||||
isLoggedIn () {
|
isLoggedIn () {
|
||||||
return !!this.$store.state.users.currentUser
|
return !!this.$store.state.users.currentUser
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,25 @@
|
||||||
<span class="title">
|
<span class="title">
|
||||||
{{ $t('settings.settings') }}
|
{{ $t('settings.settings') }}
|
||||||
</span>
|
</span>
|
||||||
|
<transition name="fade">
|
||||||
|
<template v-if="currentSaveStateNotice">
|
||||||
|
<div
|
||||||
|
v-if="currentSaveStateNotice.error"
|
||||||
|
class="alert error"
|
||||||
|
@click.prevent
|
||||||
|
>
|
||||||
|
{{ $t('settings.saving_err') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="!currentSaveStateNotice.error"
|
||||||
|
class="alert transparent"
|
||||||
|
@click.prevent
|
||||||
|
>
|
||||||
|
{{ $t('settings.saving_ok') }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</transition>
|
||||||
<button
|
<button
|
||||||
class="btn"
|
class="btn"
|
||||||
@click="peekModal"
|
@click="peekModal"
|
||||||
|
|
Loading…
Reference in a new issue