Skip to content
Snippets Groups Projects
Commit e8119b82 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs Committed by Petar Hristov
Browse files

Fix: Working Multiple Upload

parent 86bf7de7
Branches
Tags
1 merge request!76Fix: Working Multiple Upload
......@@ -32,6 +32,7 @@
"lodash": "^4.17.21",
"moment": "^2.29.1",
"pinia": "^2.0.12",
"rdf-canonize": "^3.0.0",
"rdf-ext": "^2.0.1",
"rdf-parse": "^1.8.0",
"rdf-validate-shacl": "^0.4.3",
......
......@@ -58,7 +58,7 @@
:key="formGeneratorKey"
class="generatedForm"
:fixed-values="resource.fixedValues"
:form-data="currentMetadata"
:form-data="currentUsedMetadata"
:locale="$root.$i18n.locale"
:selected-shape="resource.applicationProfile"
:shapes="applicationProfile"
......@@ -202,6 +202,7 @@ export default defineComponent({
},
data() {
return {
currentUsedMetadata: factory.dataset() as unknown as Dataset,
numberOfCurrentlyProcessedFiles: 0,
totalNumberOfCurrentlyProcessedFiles: 0,
uploadDuplicates: true,
......@@ -321,6 +322,9 @@ export default defineComponent({
},
},
watch: {
currentMetadata() {
this.currentUsedMetadata = this.currentMetadata;
},
fileListUpload() {
this.getOptions();
},
......@@ -336,10 +340,10 @@ export default defineComponent({
return await this.resourceStore.getClass(className);
},
applyMetadataTemplate() {
if (this.metadataTemplate.size > 0) {
if (this.currentUsedMetadata.size > 0) {
for (const currentFile of this.shownFiles) {
currentFile.metadata = factory.dataset(
Array.from(this.metadataTemplate)
Array.from(this.currentUsedMetadata)
) as unknown as Dataset;
}
}
......@@ -445,6 +449,7 @@ export default defineComponent({
if (this.currentFolderContent) {
this.currentFolderContent.metadata = metadata;
}
this.currentUsedMetadata = metadata;
},
async uploadPreparation() {
this.uploadFileListNewFiles = [];
......
......@@ -31,6 +31,7 @@ const config = defineConfig({
_stream_readable: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/readable'),
_stream_writable: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/writable'),
_stream_transform: require.resolve('rollup-plugin-node-polyfills/polyfills/readable-stream/transform'),
"./MessageDigest": require.resolve('rdf-canonize/lib/MessageDigest-browser.js')
},
dedupe: ["vue-demi"],
},
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment