This commit is contained in:
@@ -114,9 +114,9 @@ export default {
|
|||||||
}, /////////////////////////////////////
|
}, /////////////////////////////////////
|
||||||
// Custom confirmation
|
// Custom confirmation
|
||||||
//
|
//
|
||||||
confirmByKey() {
|
confirmGeneric(tKey) {
|
||||||
return VM_LOCAL.$root.$gzconfirm({
|
return VM_LOCAL.$root.$gzconfirm({
|
||||||
message: window.$gz.translation.get("DeletePrompt"),
|
message: window.$gz.translation.get(tKey),
|
||||||
yesButtonText: window.$gz.translation.get("OK"),
|
yesButtonText: window.$gz.translation.get("OK"),
|
||||||
noButtonText: window.$gz.translation.get("Cancel")
|
noButtonText: window.$gz.translation.get("Cancel")
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ export default {
|
|||||||
},
|
},
|
||||||
remove() {
|
remove() {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
window.$gz.dialog.confirmDelete().then(dialogResult => {
|
window.$gz.dialog.confirmGeneric("ResetToDefault").then(dialogResult => {
|
||||||
if (dialogResult == true) {
|
if (dialogResult == true) {
|
||||||
//do the delete
|
//do the delete
|
||||||
vm.formState.loading = true;
|
vm.formState.loading = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user