From cc67129bba870b4d2e2c8b7358d550a268f21c79 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 24 Mar 2022 22:29:44 +0000 Subject: [PATCH] --- ayanova/src/views/adm-import.vue | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/ayanova/src/views/adm-import.vue b/ayanova/src/views/adm-import.vue index 6b56ab2e..507ed8d7 100644 --- a/ayanova/src/views/adm-import.vue +++ b/ayanova/src/views/adm-import.vue @@ -13,10 +13,13 @@ > - + - + @@ -131,6 +134,21 @@ export default { async upload(dat) { try { this.uploading = true; + + if (this.doUpdate == true) { + let dialogResult = await window.$gz.dialog.confirmGeneric( + "AdminImportUpdateWarning", + "dire" + ); + if (dialogResult == false) { + return; + } + + if (dialogResult == false) { + return; + } + } + const res = await window.$gz.api.post("import", { data: dat, atype: this.ayaType,