From 349d1dfc31359bf39e09684bf4691b4892ab406c Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 20 Nov 2021 12:32:33 +0100 Subject: [PATCH] Fix filter tag suggestions not using all tags Signed-off-by: trivernis --- .../src/app/components/file-search/file-search.component.scss | 2 +- .../files-tab-sidebar/files-tab-sidebar.component.html | 2 +- .../files-tab/files-tab-sidebar/files-tab-sidebar.component.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mediarepo-ui/src/app/components/file-search/file-search.component.scss b/mediarepo-ui/src/app/components/file-search/file-search.component.scss index 81993c7..1dfe215 100644 --- a/mediarepo-ui/src/app/components/file-search/file-search.component.scss +++ b/mediarepo-ui/src/app/components/file-search/file-search.component.scss @@ -57,6 +57,6 @@ .filter-dialog-button { position: absolute; - right: 0; + right: -13px; top: -20px; } diff --git a/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.html b/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.html index 00a98ef..83d9da1 100644 --- a/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.html +++ b/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.html @@ -6,7 +6,7 @@ + [availableTags]="this.allTags">
diff --git a/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.ts b/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.ts index 062c8c2..6767c0c 100644 --- a/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.ts +++ b/mediarepo-ui/src/app/pages/home/files-tab/files-tab-sidebar/files-tab-sidebar.component.ts @@ -32,6 +32,7 @@ export class FilesTabSidebarComponent implements OnInit, OnChanges { public tagsOfFiles: Tag[] = []; public tags: Tag[] = []; + public allTags: Tag[] = []; public files: File[] = []; public tagsOfSelection: Tag[] = []; @@ -43,6 +44,7 @@ export class FilesTabSidebarComponent implements OnInit, OnChanges { }); this.repoService.selectedRepository.subscribe( async (repo) => repo && this.fileSearch && await this.fileSearch.searchForFiles()); + this.tagService.tags.subscribe(t => this.allTags = t); } async ngOnInit() {