mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-08 02:34:16 -04:00
Fixing collection's search
This commit is contained in:
parent
23bb7ff32c
commit
f488def4cb
14461
package-lock.json
generated
14461
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,10 @@
|
|||||||
<p class="date">{{getDate(item)}}</p>
|
<p class="date">{{getDate(item)}}</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</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 leftBtn d-none" #leftBtn (click)="scrollLeft()">
|
||||||
<button mat-raised-button color="accent" class="scrollBtn rightBtn" #rightBtn (click)="scrollRight()"><mat-icon>arrow_right</mat-icon></button>
|
<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>
|
</div>
|
||||||
|
@ -16,6 +16,7 @@ import { ItemsUtils } from "../../misc/items-utils";
|
|||||||
export class ItemsListComponent extends HorizontalScroller
|
export class ItemsListComponent extends HorizontalScroller
|
||||||
{
|
{
|
||||||
@Input() items: Page<Collection | Show | LibraryItem | ShowRole>;
|
@Input() items: Page<Collection | Show | LibraryItem | ShowRole>;
|
||||||
|
@Input() type: string;
|
||||||
|
|
||||||
constructor(private sanitizer: DomSanitizer, public client: HttpClient)
|
constructor(private sanitizer: DomSanitizer, public client: HttpClient)
|
||||||
{
|
{
|
||||||
@ -34,6 +35,8 @@ export class ItemsListComponent extends HorizontalScroller
|
|||||||
|
|
||||||
getLink(item: LibraryItem | Show | ShowRole | Collection): string
|
getLink(item: LibraryItem | Show | ShowRole | Collection): string
|
||||||
{
|
{
|
||||||
|
if (this.type)
|
||||||
|
return `/${this.type}/${item.slug}`;
|
||||||
return ItemsUtils.getLink(item);
|
return ItemsUtils.getLink(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div *ngIf="items.collections.length > 0" class="container-fluid mt-3">
|
<div *ngIf="items.collections.length > 0" class="container-fluid mt-3">
|
||||||
<h3>Collections</h3>
|
<h3>Collections</h3>
|
||||||
</div>
|
</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">
|
<div *ngIf="items.shows.length > 0" class="container-fluid mt-3">
|
||||||
<h3>Shows</h3>
|
<h3>Shows</h3>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user