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