Skip to content

Commit

Permalink
Merge pull request #756 from webitel/fix/import-csv
Browse files Browse the repository at this point in the history
fix: import csv fixed [WTEL-5052]
  • Loading branch information
VladimirBeria authored Sep 3, 2024
2 parents 2fbb1be + 4890480 commit 1e896ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/modules/_shared/upload-csv-popup/mixins/uploadCSVMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default {
return this.mappingFields.every((field) => !field.required || !isEmpty(field.csv));
},
isUploadPopup() {
return this.$route.meta.uploadCSV;
return this.$route.meta.uploadCsv;
}
},
methods: {
Expand Down Expand Up @@ -159,9 +159,9 @@ export default {
async separator() {
await this.handleParseOptionsChange();
},
isUploadPopup() {
if(this.isUploadPopup) {
this.initUploadPopup();
async isUploadPopup() {
if (this.isUploadPopup) {
await this.initUploadPopup();
}
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@change="processCSV"
/>
<upload-csv-preview-popup
:shown="!!isUploadPopup"
v-if="file"
:add-bulk-items="saveBulkData"
:charset="item.parameters.charset.value"
:file="file"
Expand Down Expand Up @@ -50,9 +50,6 @@ export default {
csv: this.item.parameters.mappings[name],
}));
},
isUploadPopup() {
return this.$route.meta.uploadCsv;
}
},
methods: {
processCSV(files) {
Expand Down

0 comments on commit 1e896ba

Please sign in to comment.