Added a success message for language switch in profile.

This commit is contained in:
elweyn 2021-09-22 12:29:21 +02:00
parent 3ca200bb96
commit 09e87526de

View File

@ -62,6 +62,7 @@
</b-card>
</template>
<script>
import { localeChanged } from 'vee-validate'
import LanguageSwitchSelect from '../../../components/LanguageSwitchSelect.vue'
import { updateUserInfos } from '../../../graphql/queries'
@ -98,7 +99,9 @@ export default {
},
})
.then(() => {
this.$store.commit('language', this.language)
this.$i18n.locale = this.language
this.$store.commit('language', this.$i18n.locale)
localeChanged(this.$i18n.locale)
this.cancelEdit()
this.$toasted.success(this.$t('languages.success'))
})