This commit is contained in:
2022-03-24 21:28:48 +00:00
parent 873dd2bca2
commit 02b58e4b51

View File

@@ -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");