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