diff --git a/mediarepo-ui/src/app/components/core/files-tab/files-tab-sidebar/files-tab-sidebar.component.html b/mediarepo-ui/src/app/components/core/files-tab/files-tab-sidebar/files-tab-sidebar.component.html index 2d02289..37ad35c 100644 --- a/mediarepo-ui/src/app/components/core/files-tab/files-tab-sidebar/files-tab-sidebar.component.html +++ b/mediarepo-ui/src/app/components/core/files-tab/files-tab-sidebar/files-tab-sidebar.component.html @@ -24,7 +24,7 @@ - + diff --git a/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.html b/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.html index 069b7f7..56bd5fd 100644 --- a/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.html +++ b/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.html @@ -3,5 +3,8 @@ + + + diff --git a/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.ts b/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.ts index 6391e1f..af49e8f 100644 --- a/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.ts +++ b/mediarepo-ui/src/app/components/core/import-tab/import-tab-sidebar/import-tab-sidebar.component.ts @@ -1,4 +1,4 @@ -import {Component, EventEmitter, Output} from "@angular/core"; +import {Component, EventEmitter, Input, Output} from "@angular/core"; import {File} from "../../../../models/File"; @Component({ @@ -8,6 +8,7 @@ import {File} from "../../../../models/File"; }) export class ImportTabSidebarComponent { + @Input() selectedFiles: File[] = []; @Output() fileImported = new EventEmitter(); @Output() importFinished = new EventEmitter(); diff --git a/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.html b/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.html index 6fcb2a2..ce69129 100644 --- a/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.html +++ b/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.html @@ -1,9 +1,9 @@ - - + diff --git a/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.ts b/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.ts index 5c71fee..fd49bc7 100644 --- a/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.ts +++ b/mediarepo-ui/src/app/components/core/import-tab/import-tab.component.ts @@ -9,6 +9,7 @@ import {File} from "../../../models/File"; export class ImportTabComponent { public files: File[] = []; + public selectedFiles: File[] = []; constructor() { } @@ -32,4 +33,8 @@ export class ImportTabComponent { public refreshFileView() { this.files = [...this.files]; } + + public onFileSelect(files: File[]) { + this.selectedFiles = files; + } } diff --git a/mediarepo-ui/src/app/components/shared/sidebar/file-edit/file-edit.component.html b/mediarepo-ui/src/app/components/shared/sidebar/file-edit/file-edit.component.html index 9c982c3..b14f90d 100644 --- a/mediarepo-ui/src/app/components/shared/sidebar/file-edit/file-edit.component.html +++ b/mediarepo-ui/src/app/components/shared/sidebar/file-edit/file-edit.component.html @@ -1,10 +1,7 @@
-