Skip to content

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

Add search for job filters

Chocobozzz5ab039f14526
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts
index 31ec33a8e5..6669a926e3 100644
--- a/client/src/app/+admin/system/jobs/jobs.component.ts
+++ b/client/src/app/+admin/system/jobs/jobs.component.ts
@@ -77,6 +77,7 @@ export class JobsComponent {
key: 'jobType',
title: $localize`Job type`,
clearable: true,
+ filter: true,
items: this.jobTypes.map(i => ({
id: i,
label: i.toLocaleUpperCase(),
diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.html b/client/src/app/shared/shared-forms/advanced-input-filter.component.html
index fa16113323..7ece1d076c 100644
--- a/client/src/app/shared/shared-forms/advanced-input-filter.component.html
+++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.html
@@ -70,12 +70,10 @@
<label class="filter-title" [for]="'filter-select-' + key">{{ def.title }}</label>
<my-select-options
- (mousedown)="$event.stopPropagation(); $event.stopImmediatePropagation(); $event.preventDefault()"
- (mouseup)="$event.stopPropagation(); $event.stopImmediatePropagation(); $event.preventDefault()"
- (click)="$event.stopPropagation(); $event.stopImmediatePropagation(); $event.preventDefault()"
[inputId]="'filter-select-' + key"
[items]="def.items"
[clearable]="def.clearable ?? true"
+ [filter]="def.filter ?? false"
[ngModel]="getSelectValue(key)"
(ngModelChange)="setSelectValue(key, $event)"
small="true"
diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.ts b/client/src/app/shared/shared-forms/advanced-input-filter.component.ts
index 5c02ba7cac..5f0b1d22b6 100644
--- a/client/src/app/shared/shared-forms/advanced-input-filter.component.ts
+++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.ts
@@ -40,7 +40,8 @@ export type SelectFilterDef<ServiceParameters extends Record<string, any>> = {
key: Key
title: string
items: SelectOptionsItem<ServiceParameters[Key]>[]
- clearable?: boolean
+ clearable?: boolean // default true
+ filter?: boolean // default false
}
}[Extract<keyof ServiceParameters, string>]