This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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:");
|
||||||
this.$dialog.confirm({
|
console.log(res);
|
||||||
text: "Do you really want to exit?",
|
});
|
||||||
title: "Warning"
|
|
||||||
}).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));
|
//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"
|
||||||
|
|||||||
Reference in New Issue
Block a user