mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 00:38:35 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
30 lines
642 B
Vue
30 lines
642 B
Vue
<template>
|
|
<Toast type="info-neutral" icon="iconoir-warning-triangle">
|
|
<template #title>{{ $t('userSessionExpiredToast.title') }}</template>
|
|
<span> {{ $t('userSessionExpiredToast.content') }}</span>
|
|
</Toast>
|
|
</template>
|
|
|
|
<script>
|
|
import Toast from '@baserow/modules/core/components/toasts/Toast'
|
|
export default {
|
|
name: 'UserSessionExpiredToast',
|
|
components: {
|
|
Toast,
|
|
},
|
|
mounted() {
|
|
setTimeout(() => {
|
|
this.acknowledge()
|
|
}, 7000)
|
|
},
|
|
beforeUnmount() {
|
|
this.acknowledge()
|
|
},
|
|
methods: {
|
|
acknowledge() {
|
|
this.$store.dispatch('toast/setUserSessionExpired', false)
|
|
},
|
|
},
|
|
}
|
|
</script>
|