mirror of https://github.com/Chocobozzz/PeerTube
Automatically filter on local videos in admin
We expect admins will mostly want to act on local videospull/6128/head
parent
b4f4432459
commit
bca6d58676
|
@ -57,6 +57,9 @@ export class AdminComponent implements OnInit {
|
|||
overviewItems.children.push({
|
||||
label: $localize`Videos`,
|
||||
routerLink: '/admin/videos',
|
||||
queryParams: {
|
||||
search: 'isLocal:true'
|
||||
},
|
||||
iconName: 'videos'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
*ngIf="isDisplayed(menuChild)" ngbDropdownItem
|
||||
[ngClass]="{ icon: hasIcons }" routerLinkActive="active" ariaCurrentWhenActive="page"
|
||||
[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>
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ export type TopMenuDropdownParam = {
|
|||
children?: {
|
||||
label: string
|
||||
routerLink: string
|
||||
queryParams?: { [id: string]: string }
|
||||
iconName?: GlobalIconName
|
||||
|
||||
isDisplayed?: () => boolean // Default: () => true
|
||||
|
|
Loading…
Reference in New Issue