Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Automatically filter on local videos in admin

Chocobozzzbca6d58676b3
diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts
index c0d7db99e8..71c2d94d18 100644
--- a/client/src/app/+admin/admin.component.ts
+++ b/client/src/app/+admin/admin.component.ts
@@ -57,6 +57,9 @@ export class AdminComponent implements OnInit {
overviewItems.children.push({
label: $localize`Videos`,
routerLink: '/admin/videos',
+ queryParams: {
+ search: 'isLocal:true'
+ },
iconName: 'videos'
})
}
diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
index 617d72efdc..8d78646663 100644
--- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
+++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
@@ -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>
diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts
index a8cc9b593f..19f1f7d41e 100644
--- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts
+++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts
@@ -15,6 +15,7 @@ export type TopMenuDropdownParam = {
children?: {
label: string
routerLink: string
+ queryParams?: { [id: string]: string }
iconName?: GlobalIconName
isDisplayed?: () => boolean // Default: () => true