This commit is contained in:
@@ -297,7 +297,7 @@ export default {
|
||||
beforeRouteLeave(to, from, next) {
|
||||
var vm = this;
|
||||
if (this.formState.dirty && !JUST_DELETED) {
|
||||
vm.$gzdialog.confirmLeaveUnsaved(vm).then(dialogResult => {
|
||||
window.$gz.dialog.confirmLeaveUnsaved(vm).then(dialogResult => {
|
||||
if (dialogResult == true) {
|
||||
next();
|
||||
} else {
|
||||
@@ -410,7 +410,7 @@ export default {
|
||||
//Not found?
|
||||
if (res.error.code == "2010") {
|
||||
//notify not found error then navigate backwards
|
||||
vm.$gzdialog
|
||||
window.$gz.dialog
|
||||
.displayLTErrorMessage(vm, "ErrorAPI2010")
|
||||
.then(() => {
|
||||
// navigate backwards
|
||||
@@ -490,7 +490,7 @@ export default {
|
||||
},
|
||||
remove() {
|
||||
var vm = this;
|
||||
vm.$gzdialog.confirmDelete(vm).then(dialogResult => {
|
||||
window.$gz.dialog.confirmDelete(vm).then(dialogResult => {
|
||||
if (dialogResult == true) {
|
||||
//do the delete
|
||||
vm.formState.loading = true;
|
||||
@@ -584,7 +584,7 @@ function clickHandler(menuItem) {
|
||||
case "report":
|
||||
var reportList = m.vm.$gzreport.availableReports("WIDGET");
|
||||
var selectedItem = reportList[0].value;
|
||||
m.vm.$gzdialog
|
||||
window.$gz.dialog
|
||||
.getReportChoice(m.vm, reportList, selectedItem)
|
||||
.then(res => {
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user