This commit is contained in:
@@ -36,7 +36,8 @@
|
|||||||
>{{ $ay.t("Open") }}</v-btn
|
>{{ $ay.t("Open") }}</v-btn
|
||||||
>
|
>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
importable
|
||||||
|
{{ importable }}
|
||||||
<v-col v-if="outputText != null" cols="12">
|
<v-col v-if="outputText != null" cols="12">
|
||||||
<v-textarea
|
<v-textarea
|
||||||
v-model="outputText"
|
v-model="outputText"
|
||||||
@@ -70,8 +71,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
importable() {
|
importable() {
|
||||||
return (
|
return (
|
||||||
(this.import || this.update) &&
|
(this.doImport || this.doUpdate) &&
|
||||||
this.uploadFile &&
|
|
||||||
this.uploadFile.name &&
|
this.uploadFile.name &&
|
||||||
this.ayaType != 0
|
this.ayaType != 0
|
||||||
);
|
);
|
||||||
@@ -103,7 +103,7 @@ export default {
|
|||||||
let dat = null;
|
let dat = null;
|
||||||
if (isCSV) {
|
if (isCSV) {
|
||||||
let res = await parseCSVFile(this.uploadFile);
|
let res = await parseCSVFile(this.uploadFile);
|
||||||
if (res.errors) {
|
if (res.errors.length > 0) {
|
||||||
this.outputText =
|
this.outputText =
|
||||||
"LT:CSV parsing errors:\n" + JSON.stringify(res.errors);
|
"LT:CSV parsing errors:\n" + JSON.stringify(res.errors);
|
||||||
throw new Error("LT:Errors in CSV file import can not proceed");
|
throw new Error("LT:Errors in CSV file import can not proceed");
|
||||||
|
|||||||
Reference in New Issue
Block a user