Fixing collection's search

This commit is contained in:
Zoe Roux
2021-03-18 11:07:34 +01:00
parent 23bb7ff32c
commit f488def4cb
4 changed files with 26730 additions and 12304 deletions
+26720 -12301
View File
File diff suppressed because it is too large Load Diff
@@ -8,6 +8,10 @@
<p class="date">{{getDate(item)}}</p>
</a>
</div>
<button mat-raised-button color="accent" class="scrollBtn leftBtn d-none" #leftBtn (click)="scrollLeft()"><mat-icon>arrow_left</mat-icon></button>
<button mat-raised-button color="accent" class="scrollBtn rightBtn" #rightBtn (click)="scrollRight()"><mat-icon>arrow_right</mat-icon></button>
<button mat-raised-button color="accent" class="scrollBtn leftBtn d-none" #leftBtn (click)="scrollLeft()">
<mat-icon>arrow_left</mat-icon>
</button>
<button mat-raised-button color="accent" class="scrollBtn rightBtn" #rightBtn (click)="scrollRight()">
<mat-icon>arrow_right</mat-icon>
</button>
</div>
@@ -16,6 +16,7 @@ import { ItemsUtils } from "../../misc/items-utils";
export class ItemsListComponent extends HorizontalScroller
{
@Input() items: Page<Collection | Show | LibraryItem | ShowRole>;
@Input() type: string;
constructor(private sanitizer: DomSanitizer, public client: HttpClient)
{
@@ -34,6 +35,8 @@ export class ItemsListComponent extends HorizontalScroller
getLink(item: LibraryItem | Show | ShowRole | Collection): string
{
if (this.type)
return `/${this.type}/${item.slug}`;
return ItemsUtils.getLink(item);
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
<div *ngIf="items.collections.length > 0" class="container-fluid mt-3">
<h3>Collections</h3>
</div>
<app-items-list [items]="AsPage(items.collections)"></app-items-list>
<app-items-list [items]="AsPage(items.collections)" type="collection"></app-items-list>
<div *ngIf="items.shows.length > 0" class="container-fluid mt-3">
<h3>Shows</h3>
</div>