This commit is contained in:
2019-05-01 23:32:03 +00:00
parent 7ad284cf77
commit 4a3980fd14
2 changed files with 14 additions and 15 deletions

View File

@@ -503,11 +503,10 @@ export default {
} }
}); });
}, },
async confirm(vm) { confirm(vm) {
const res = await vm.$dialog.confirm({ return vm.$dialog.confirm({
text: "Do you really want to exit?", text: "GZFORM has a question: Do you really want to exit?",
title: "Warning" title: "Warning"
}); });
return res;
} }
}; };

View File

@@ -431,21 +431,21 @@ export default {
}, },
duplicate() { duplicate() {
console.log("About to dialog"); console.log("About to dialog");
this.$gzform.confirm(this).then(res => {
console.log("The dialog result is:");
console.log(res);
});
// this.$dialog.confirm({
this.$dialog.confirm({ // text: "Do you really want to exit?",
text: "Do you really want to exit?", // title: "Warning"
title: "Warning" // }).then(res => {
}).then(res => { // console.log("The dialog result is:");
console.log("The dialog result is:"); // console.log(res);
console.log(res); // });
});
//console.log(this.$gzform.confirm(this)); //console.log(this.$gzform.confirm(this));
// this.$dialog.error({ // this.$dialog.error({
// text: "Cannot delete this item", // text: "Cannot delete this item",
// title: "Error" // title: "Error"