Skip to content
Snippets Groups Projects
Commit 6a4ad1fe authored by HJ's avatar HJ :fire:
Browse files

added "settings saved" notice back

parent e7ba4255
Branches
Tags
No related merge requests found
......@@ -25,6 +25,9 @@ const SettingsModalContent = {
ThemeTab
},
computed: {
currentSaveStateNotice () {
return this.$store.state.interface.settings.currentSaveStateNotice
},
isLoggedIn () {
return !!this.$store.state.users.currentUser
}
......
......@@ -4,6 +4,25 @@
<span class="title">
{{ $t('settings.settings') }}
</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
class="btn"
@click="peekModal"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment