Fix filter tag suggestions not using all tags

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 05c2aa3507
commit 349d1dfc31

@ -57,6 +57,6 @@
.filter-dialog-button {
position: absolute;
right: 0;
right: -13px;
top: -20px;
}

@ -6,7 +6,7 @@
<app-file-search #filesearch (searchEndEvent)="this.searchEndEvent.emit()"
(searchStartEvent)="this.searchStartEvent.emit()"
[validTags]="this.getValidTagsForSearch()"
[availableTags]="this.tagsOfFiles"></app-file-search>
[availableTags]="this.allTags"></app-file-search>
</div>
<mat-divider fxFlex="1em"></mat-divider>
<div class="tag-list-header" fxFlex="40px">

@ -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() {

Loading…
Cancel
Save