This commit is contained in:
2020-06-14 23:26:21 +00:00
parent 3858fe5c7f
commit 124511e117
3 changed files with 41 additions and 30 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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();