Skip to content
Snippets Groups Projects
Commit a8b8e4a1 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix: Switch to Metadata view when upload is selected

parent dc0dfa28
Branches Issue/2769-migrateCron
Tags
4 merge requests!369Chore 2.12.3,!366Chore: 2.13.4,!363merge dev into main,!359Fix: Switch to Metadata view when upload is selected
Pipeline #1320824 passed with warnings
......@@ -472,17 +472,20 @@ export default defineComponent({
watch: {
currentVersion() {
this.setExtractedMetadata();
if (this.fileListUpload.length === 0) {
this.setExtractedMetadata();
}
},
currentViewedMetadata() {
this.currentUsedMetadata = this.currentViewedMetadata;
},
fileListUpload() {
this.currentView = "Metadata";
this.getOptions();
},
fileListEdit(newVal, oldVal) {
fileListEdit(newVal: FolderContent[], oldVal: FolderContent[]) {
// Trigger only the value really changed. Otherwise double API calls are triggered.
if (newVal !== oldVal) {
if (newVal !== oldVal && newVal.length !== 0) {
this.getOptions();
this.setExtractedMetadata();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment