@konfuzio/document-validation-ui 0.1.47 → 0.1.48-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.47",
3
+ "version": "0.1.48-dev.0",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -193,11 +193,11 @@ export default {
193
193
  handleDownloadFile(fileType) {
194
194
  let fileUrl;
195
195
  // get the file name without the extension
196
- let fileName = this.getFileName(this.selectedDocument.data_file_name);
196
+ let fileName = this.selectedDocument.data_file_name;
197
197
 
198
198
  if (fileType === "ocr") {
199
199
  fileUrl = this.selectedDocument.file_url;
200
- fileName = `${fileName}_${fileType}`;
200
+ fileName = `${fileType}_${fileName}`;
201
201
  } else {
202
202
  fileUrl = `/doc/show-original/${this.selectedDocument.id}/`;
203
203
  }
@@ -222,9 +222,6 @@ export default {
222
222
  console.log(error);
223
223
  });
224
224
  },
225
- getFileName(fileName) {
226
- return fileName.split(".").slice(0, -1).join(".");
227
- },
228
225
  cancelAnnotationEditMode() {
229
226
  this.$store.dispatch("document/resetEditAnnotation");
230
227
  this.$store.dispatch("selection/disableSelection");