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) {
const res = await vm.$dialog.confirm({
text: "Do you really want to exit?",
confirm(vm) {
return vm.$dialog.confirm({
text: "GZFORM has a question: Do you really want to exit?",
title: "Warning"
});
return res;
}
};

View File

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