This commit is contained in:
@@ -13,10 +13,13 @@
|
|||||||
></v-select>
|
></v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox v-model="doImport" :label="$ay.t('Import')"></v-checkbox>
|
<v-checkbox v-model="doImport" :label="$ay.t('ImportNew')"></v-checkbox>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox v-model="doUpdate" :label="$ay.t('Update')"></v-checkbox>
|
<v-checkbox
|
||||||
|
v-model="doUpdate"
|
||||||
|
:label="$ay.t('UpdateExisting')"
|
||||||
|
></v-checkbox>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
@@ -131,6 +134,21 @@ export default {
|
|||||||
async upload(dat) {
|
async upload(dat) {
|
||||||
try {
|
try {
|
||||||
this.uploading = true;
|
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", {
|
const res = await window.$gz.api.post("import", {
|
||||||
data: dat,
|
data: dat,
|
||||||
atype: this.ayaType,
|
atype: this.ayaType,
|
||||||
|
|||||||
Reference in New Issue
Block a user