remove changes, hide automatic logout toaster after login

This commit is contained in:
ogerly 2023-05-31 12:50:10 +02:00
parent 72f101ecc2
commit ef8c619512
2 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export default {
} }
if (this.tokenExpiresInSeconds === 0) { if (this.tokenExpiresInSeconds === 0) {
this.$timer.stop('tokenExpires') this.$timer.stop('tokenExpires')
this.toastInfo(this.$t('session.automaticallyLoggedOut')) this.toastInfoNoHide(this.$t('session.automaticallyLoggedOut'))
this.$emit('logout') this.$emit('logout')
} }
}, },
@ -85,7 +85,7 @@ export default {
}) })
.catch(() => { .catch(() => {
this.$timer.stop('tokenExpires') this.$timer.stop('tokenExpires')
this.toastInfo(this.$t('session.automaticallyLoggedOut')) this.toastInfoNoHide(this.$t('session.automaticallyLoggedOut'))
this.$emit('logout') this.$emit('logout')
}) })
}, },

View File

@ -86,6 +86,7 @@ export default {
const loader = this.$loading.show({ const loader = this.$loading.show({
container: this.$refs.submitButton, container: this.$refs.submitButton,
}) })
this.$root.$bvToast.hide()
this.$apollo this.$apollo
.mutate({ .mutate({
mutation: login, mutation: login,