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 { .filter-dialog-button {
position: absolute; position: absolute;
right: 0; right: -13px;
top: -20px; top: -20px;
} }

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

@ -32,6 +32,7 @@ export class FilesTabSidebarComponent implements OnInit, OnChanges {
public tagsOfFiles: Tag[] = []; public tagsOfFiles: Tag[] = [];
public tags: Tag[] = []; public tags: Tag[] = [];
public allTags: Tag[] = [];
public files: File[] = []; public files: File[] = [];
public tagsOfSelection: Tag[] = []; public tagsOfSelection: Tag[] = [];
@ -43,6 +44,7 @@ export class FilesTabSidebarComponent implements OnInit, OnChanges {
}); });
this.repoService.selectedRepository.subscribe( this.repoService.selectedRepository.subscribe(
async (repo) => repo && this.fileSearch && await this.fileSearch.searchForFiles()); async (repo) => repo && this.fileSearch && await this.fileSearch.searchForFiles());
this.tagService.tags.subscribe(t => this.allTags = t);
} }
async ngOnInit() { async ngOnInit() {

Loading…
Cancel
Save