This commit is contained in:
@@ -293,9 +293,9 @@ export default {
|
||||
// don't forget to call next()
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
var vm = this;
|
||||
//var vm = this;
|
||||
if (this.formState.dirty && !JUST_DELETED) {
|
||||
window.$gz.dialog.confirmLeaveUnsaved(vm).then(dialogResult => {
|
||||
window.$gz.dialog.confirmLeaveUnsaved().then(dialogResult => {
|
||||
if (dialogResult == true) {
|
||||
next();
|
||||
} else {
|
||||
@@ -497,7 +497,7 @@ export default {
|
||||
},
|
||||
remove() {
|
||||
var vm = this;
|
||||
window.$gz.dialog.confirmDelete(vm).then(dialogResult => {
|
||||
window.$gz.dialog.confirmDelete().then(dialogResult => {
|
||||
if (dialogResult == true) {
|
||||
//do the delete
|
||||
vm.formState.loading = true;
|
||||
|
||||
Reference in New Issue
Block a user