Browse Source

Finetune notification popup

master
Joshua Rubingh 5 months ago
parent
commit
536d0ff00d
  1. 3
      locales/en.js
  2. 5
      nuxt.config.js
  3. 5
      pages/profile/edit.vue

3
locales/en.js

@ -115,6 +115,9 @@ export default { @@ -115,6 +115,9 @@ export default {
profile: {
edit: {
title: 'Edit me',
},
update: {
success : 'User profile is updated'
}
}
},

5
nuxt.config.js

@ -59,8 +59,9 @@ export default { @@ -59,8 +59,9 @@ export default {
],
toast: {
position: 'top-right',
duration : 10000,
theme: 'toasted-primary',
position: 'top-center',
duration : 6000,
iconPack : 'mdi',
action : {
icon: 'close',

5
pages/profile/edit.vue

@ -179,7 +179,10 @@ export default { @@ -179,7 +179,10 @@ export default {
},
onResponse(response) {
/* TODO: Should reload the current page.... but then the form does not work anymore. Something with the state.... */
this.vm.$router.push(this.vm.localePath(`/researchStudies/`))
this.vm.$router.push(this.vm.localePath('/profile/edit/'))
this.vm.$toast.success(
this.vm.$t('page.profile.update.success')
)
},
}),
}

Loading…
Cancel
Save