From 64553e8809271df1113e9143426a27f234410a74 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Oct 2021 14:23:32 +0200 Subject: Add ability to filter logs by tags --- client/src/app/shared/shared-forms/select/select-tags.component.html | 2 +- client/src/app/shared/shared-forms/select/select-tags.component.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/shared-forms/select') diff --git a/client/src/app/shared/shared-forms/select/select-tags.component.html b/client/src/app/shared/shared-forms/select/select-tags.component.html index e1cd50882..de6cee6db 100644 --- a/client/src/app/shared/shared-forms/select/select-tags.component.html +++ b/client/src/app/shared/shared-forms/select/select-tags.component.html @@ -2,7 +2,7 @@ [items]="availableItems" [(ngModel)]="selectedItems" (ngModelChange)="onModelChange()" - i18n-placeholder placeholder="Enter a new tag" + [placeholder]="placeholder" [maxSelectedItems]="5" [clearable]="true" [addTag]="true" diff --git a/client/src/app/shared/shared-forms/select/select-tags.component.ts b/client/src/app/shared/shared-forms/select/select-tags.component.ts index 93d199037..bef04de8a 100644 --- a/client/src/app/shared/shared-forms/select/select-tags.component.ts +++ b/client/src/app/shared/shared-forms/select/select-tags.component.ts @@ -16,6 +16,7 @@ import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms' export class SelectTagsComponent implements ControlValueAccessor { @Input() availableItems: string[] = [] @Input() selectedItems: string[] = [] + @Input() placeholder = $localize`Enter a new tag` propagateChange = (_: any) => { /* empty */ } -- cgit v1.2.3