Reload results on form-change

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
Jonas Rittershofer 2020-05-10 14:43:33 +02:00
commit 980cd316f3
2 changed files with 8 additions and 1 deletions

View file

@ -58,7 +58,7 @@ export default new Router({
path: '/:hash/results',
component: Results,
name: 'results',
props: { default: true },
props: true,
},
],
})

View file

@ -139,6 +139,13 @@ export default {
},
},
watch: {
// Reload results, when form changes
hash() {
this.loadFormResults()
},
},
beforeMount() {
this.loadFormResults()
SetWindowTitle(this.formTitle)