This commit is contained in:
@@ -503,10 +503,26 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
confirm(vm) {
|
||||
return vm.$dialog.confirm({
|
||||
text: "GZFORM has a question: Do you really want to exit?",
|
||||
title: "Warning"
|
||||
////////////////////////////
|
||||
//
|
||||
//
|
||||
confirmDelete(vm) {
|
||||
//https://github.com/yariksav/vuetify-dialog#readme
|
||||
return vm.$dialog.warning({
|
||||
text: vm.$gzlocale.get("DeletePrompt"),
|
||||
title: vm.$gzlocale.get("Delete"),
|
||||
icon: "fa-exclamation-triangle",
|
||||
actions: [
|
||||
{
|
||||
text: vm.$gzlocale.get("Cancel"),
|
||||
key: false
|
||||
},
|
||||
{
|
||||
text: vm.$gzlocale.get("Delete"),
|
||||
color: "red",
|
||||
key: true
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -91,7 +91,8 @@ export default {
|
||||
"ErrorAPI2209",
|
||||
"ErrorServerUnresponsive",
|
||||
"ErrorUserNotAuthenticated",
|
||||
"ErrorUserNotAuthorized"
|
||||
"ErrorUserNotAuthorized",
|
||||
"DeletePrompt"
|
||||
],
|
||||
decimalValidate(required) {
|
||||
return { required: required, decimal: [2, this.formats.decimalSeparator] };
|
||||
|
||||
Reference in New Issue
Block a user