This commit is contained in:
@@ -337,7 +337,9 @@ export default {
|
||||
},
|
||||
remove() {
|
||||
let vm = this;
|
||||
window.$gz.dialog.confirmGeneric("ResetToDefault").then(dialogResult => {
|
||||
window.$gz.dialog
|
||||
.confirmGeneric("ResetToDefault", "warning")
|
||||
.then(dialogResult => {
|
||||
if (dialogResult == true) {
|
||||
//do the delete
|
||||
vm.formState.loading = true;
|
||||
|
||||
@@ -349,7 +349,16 @@ export default {
|
||||
//Only no key or expired trial are here, not expired purchase
|
||||
//so safe to erase
|
||||
let dialogResult = await window.$gz.dialog.confirmGeneric(
|
||||
"AdminEraseDatabaseWarning"
|
||||
"AdminEraseDatabaseWarning",
|
||||
"warning"
|
||||
);
|
||||
if (dialogResult == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
dialogResult = await window.$gz.dialog.confirmGeneric(
|
||||
"AdminEraseDatabaseLastWarning",
|
||||
"error"
|
||||
);
|
||||
if (dialogResult == false) {
|
||||
return;
|
||||
|
||||
@@ -355,7 +355,7 @@ function clickHandler(menuItem) {
|
||||
break;
|
||||
case "backupnow":
|
||||
window.$gz.dialog
|
||||
.confirmGeneric("AreYouSureBackupNow")
|
||||
.confirmGeneric("AreYouSureBackupNow", "warning")
|
||||
.then(dialogResult => {
|
||||
if (dialogResult == true) {
|
||||
m.vm.backupNow();
|
||||
|
||||
Reference in New Issue
Block a user