Skip to content

Commit

Permalink
#156 fixed successpage not working on javascript functions
Browse files Browse the repository at this point in the history
  • Loading branch information
smcgrath0 committed Sep 8, 2020
1 parent c4438fd commit 72e6bb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fragments/form/template.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default {
if(result === false) {
Vue.set(this, 'failureText', this.model.failmessage);
}
if (result === true && this.model.successpage) {
$peregrineApp.loadContent(this.model.successpage)
}
} catch(err) {
console.error(err)
Vue.set(this, 'failureText', this.model.failmessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export default {
if(result === false) {
Vue.set(this, 'failureText', this.model.failmessage);
}
if (result === true && this.model.successpage) {
$peregrineApp.loadContent(this.model.successpage)
}
} catch(err) {
console.error(err)
Vue.set(this, 'failureText', this.model.failmessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $formsapp = {
localStorage.setItem(model.endpointurl, JSON.stringify(records, true, 2));
window.dispatchEvent(new CustomEvent('datalist-storage-update',{}));
window.dispatchEvent(new CustomEvent('form-clear',{}));
return true
},

load(path) {
Expand Down

0 comments on commit 72e6bb9

Please sign in to comment.