Skip to content

Commit

Permalink
Fixed a bug where from search bar an invalid filter encode would be p…
Browse files Browse the repository at this point in the history
…roduced.
  • Loading branch information
majora2007 committed Nov 20, 2023
1 parent 3625fa2 commit a4e97de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions UI/Web/src/app/_services/member.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export class MemberService {
return this.httpClient.get<boolean>(this.baseUrl + 'users/has-library-access?libraryId=' + libraryId);
}

hasReadingProgress(librayId: number) {
return this.httpClient.get<boolean>(this.baseUrl + 'users/has-reading-progress?libraryId=' + librayId);
hasReadingProgress(libraryId: number) {
return this.httpClient.get<boolean>(this.baseUrl + 'users/has-reading-progress?libraryId=' + libraryId);
}

addSeriesToWantToRead(seriesIds: Array<number>) {
Expand All @@ -47,5 +47,5 @@ export class MemberService {
getMember() {
return this.httpClient.get<Member>(this.baseUrl + 'users/myself');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
private readonly accountService = inject(AccountService);
private readonly formBuilder = inject(FormBuilder);
private readonly navService = inject(NavService);
private readonly memberService = inject(MemberService);
private readonly modalService = inject(NgbModal);
private readonly cdRef = inject(ChangeDetectorRef);
private readonly toastr = inject(ToastrService);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ export class NavHeaderComponent implements OnInit {
}

goToOther(field: FilterField, value: string) {
this.goTo({field, comparison: FilterComparison.Equal, value});
this.goTo({field, comparison: FilterComparison.Equal, value: value + ''});
}

goToPerson(role: PersonRole, filter: any) {
this.clearSearch();
filter = filter + '';
switch(role) {
case PersonRole.Writer:
this.goTo({field: FilterField.Writers, comparison: FilterComparison.Equal, value: filter});
Expand Down

0 comments on commit a4e97de

Please sign in to comment.