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('ImportNew')"></v-checkbox>
|
<v-checkbox
|
||||||
|
v-model="doImport"
|
||||||
|
:label="$ay.t('ImportNewRecords')"
|
||||||
|
></v-checkbox>
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="doUpdate"
|
v-model="doUpdate"
|
||||||
:label="$ay.t('UpdateExisting')"
|
:label="$ay.t('UpdateExistingRecords')"
|
||||||
color="warning"
|
color="warning"
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -138,10 +141,10 @@ export default {
|
|||||||
// JSON.stringify(dat)
|
// JSON.stringify(dat)
|
||||||
// );
|
// );
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"if it was csv it should look like this:",
|
// "if it was csv it should look like this:",
|
||||||
Papa.unparse(dat)
|
// Papa.unparse(dat)
|
||||||
);
|
// );
|
||||||
|
|
||||||
//upload the data
|
//upload the data
|
||||||
await this.upload(dat);
|
await this.upload(dat);
|
||||||
@@ -156,15 +159,11 @@ export default {
|
|||||||
if (this.doUpdate == true) {
|
if (this.doUpdate == true) {
|
||||||
let dialogResult = await window.$gz.dialog.confirmGeneric(
|
let dialogResult = await window.$gz.dialog.confirmGeneric(
|
||||||
"AdminImportUpdateWarning",
|
"AdminImportUpdateWarning",
|
||||||
"dire"
|
"warning"
|
||||||
);
|
);
|
||||||
if (dialogResult == false) {
|
if (dialogResult == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dialogResult == false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await window.$gz.api.post("import", {
|
const res = await window.$gz.api.post("import", {
|
||||||
@@ -234,7 +233,11 @@ function generateMenu() {
|
|||||||
// Ensures UI translated text is available
|
// Ensures UI translated text is available
|
||||||
//
|
//
|
||||||
async function fetchTranslatedText() {
|
async function fetchTranslatedText() {
|
||||||
await window.$gz.translation.cacheTranslations(["AyaType"]);
|
await window.$gz.translation.cacheTranslations([
|
||||||
|
"AyaType",
|
||||||
|
"ImportNewRecords",
|
||||||
|
"UpdateExistingRecords"
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////
|
//////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user