@konfuzio/document-validation-ui 0.1.47 → 0.1.48-dev.1
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
|
@@ -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.
|
|
196
|
+
let fileName = this.selectedDocument.data_file_name;
|
|
197
197
|
|
|
198
198
|
if (fileType === "ocr") {
|
|
199
199
|
fileUrl = this.selectedDocument.file_url;
|
|
200
|
-
fileName = `${
|
|
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");
|
package/src/store/document.js
CHANGED
|
@@ -416,6 +416,11 @@ const getters = {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
// sort ann sets by name
|
|
420
|
+
processedAnnotationSets.sort((a, b) =>
|
|
421
|
+
a.label_set.name.localeCompare(b.label_set.name)
|
|
422
|
+
);
|
|
423
|
+
|
|
419
424
|
return {
|
|
420
425
|
annotationSets: processedAnnotationSets,
|
|
421
426
|
labels: processedLabels,
|