Skip to content
Snippets Groups Projects

Fix: Switch to Metadata view when upload is selected

Merged Benedikt Heinrichs requested to merge Issue/2769-migrateCron into dev
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
@@ -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();
}
Loading