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

Merge branch 'Issue/2769-migrateCron' into 'dev'

Fix: Switch to Metadata view when upload is selected

See merge request !359
parents f8245164 a8b8e4a1
Branches
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 #1322383 passed with warnings
...@@ -476,17 +476,20 @@ export default defineComponent({ ...@@ -476,17 +476,20 @@ export default defineComponent({
watch: { watch: {
currentVersion() { currentVersion() {
if (this.fileListUpload.length === 0) {
this.setExtractedMetadata(); this.setExtractedMetadata();
}
}, },
currentViewedMetadata() { currentViewedMetadata() {
this.currentUsedMetadata = this.currentViewedMetadata; this.currentUsedMetadata = this.currentViewedMetadata;
}, },
fileListUpload() { fileListUpload() {
this.currentView = "Metadata";
this.getOptions(); this.getOptions();
}, },
fileListEdit(newVal, oldVal) { fileListEdit(newVal: FolderContent[], oldVal: FolderContent[]) {
// Trigger only the value really changed. Otherwise double API calls are triggered. // Trigger only the value really changed. Otherwise double API calls are triggered.
if (newVal !== oldVal) { if (newVal !== oldVal && newVal.length !== 0) {
this.getOptions(); this.getOptions();
this.setExtractedMetadata(); this.setExtractedMetadata();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment