Add notifications

This commit is contained in:
2020-06-09 02:59:15 +02:00
parent ff829e5922
commit 7c92d9d9bc
6 changed files with 51 additions and 12 deletions
+6
View File
@@ -48,6 +48,12 @@ export default {
tab: 0,
tabs: ['Login', 'Register'],
}),
mounted() {
this.$root.$on('register::success', () => {
this.$root.$emit('toast', 'Welcome', 'success')
this.tab = 0
})
},
head: () => ({
title: 'Account',
}),