mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
Added a success message for language switch in profile.
This commit is contained in:
parent
3ca200bb96
commit
09e87526de
@ -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'))
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user