From 9abd170dec9a0b929da1f0947e3c7019e38631da Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Aug 2020 09:22:42 +0200 Subject: Fix tags in search filters --- .../src/app/shared/shared-forms/select-channel.component.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/shared-forms/select-channel.component.ts') diff --git a/client/src/app/shared/shared-forms/select-channel.component.ts b/client/src/app/shared/shared-forms/select-channel.component.ts index de98c8c0a..ef4192095 100644 --- a/client/src/app/shared/shared-forms/select-channel.component.ts +++ b/client/src/app/shared/shared-forms/select-channel.component.ts @@ -1,7 +1,14 @@ -import { Component, Input, forwardRef, ViewChild } from '@angular/core' -import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms' +import { Component, forwardRef, Input } from '@angular/core' +import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' import { Actor } from '../shared-main' +export type SelectChannelItem = { + id: number + label: string + support: string + avatarPath?: string +} + @Component({ selector: 'my-select-channel', styleUrls: [ './select-shared.component.scss' ], @@ -15,7 +22,7 @@ import { Actor } from '../shared-main' ] }) export class SelectChannelComponent implements ControlValueAccessor { - @Input() items: { id: number, label: string, support: string, avatarPath?: string }[] = [] + @Input() items: SelectChannelItem[] = [] selectedId: number -- cgit v1.2.3