Automatically filter on local videos in admin
We expect admins will mostly want to act on local videos
This commit is contained in:
parent
b4f4432459
commit
bca6d58676
|
@ -57,6 +57,9 @@ export class AdminComponent implements OnInit {
|
||||||
overviewItems.children.push({
|
overviewItems.children.push({
|
||||||
label: $localize`Videos`,
|
label: $localize`Videos`,
|
||||||
routerLink: '/admin/videos',
|
routerLink: '/admin/videos',
|
||||||
|
queryParams: {
|
||||||
|
search: 'isLocal:true'
|
||||||
|
},
|
||||||
iconName: 'videos'
|
iconName: 'videos'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
*ngIf="isDisplayed(menuChild)" ngbDropdownItem
|
*ngIf="isDisplayed(menuChild)" ngbDropdownItem
|
||||||
[ngClass]="{ icon: hasIcons }" routerLinkActive="active" ariaCurrentWhenActive="page"
|
[ngClass]="{ icon: hasIcons }" routerLinkActive="active" ariaCurrentWhenActive="page"
|
||||||
[routerLink]="menuChild.routerLink" #routerLink (click)="onActiveLinkScrollToTop(routerLink)"
|
[routerLink]="menuChild.routerLink" #routerLink (click)="onActiveLinkScrollToTop(routerLink)"
|
||||||
|
[queryParams]="menuChild.queryParams"
|
||||||
>
|
>
|
||||||
<my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName" aria-hidden="true"></my-global-icon>
|
<my-global-icon *ngIf="menuChild.iconName" [iconName]="menuChild.iconName" aria-hidden="true"></my-global-icon>
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ export type TopMenuDropdownParam = {
|
||||||
children?: {
|
children?: {
|
||||||
label: string
|
label: string
|
||||||
routerLink: string
|
routerLink: string
|
||||||
|
queryParams?: { [id: string]: string }
|
||||||
iconName?: GlobalIconName
|
iconName?: GlobalIconName
|
||||||
|
|
||||||
isDisplayed?: () => boolean // Default: () => true
|
isDisplayed?: () => boolean // Default: () => true
|
||||||
|
|
Loading…
Reference in New Issue