diff options
Diffstat (limited to 'client/src/app/shared/shared-forms/select-channel.component.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/select-channel.component.ts | 13 |
1 files changed, 10 insertions, 3 deletions
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 @@ | |||
1 | import { Component, Input, forwardRef, ViewChild } from '@angular/core' | 1 | import { Component, forwardRef, Input } from '@angular/core' |
2 | import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import { Actor } from '../shared-main' | 3 | import { Actor } from '../shared-main' |
4 | 4 | ||
5 | export type SelectChannelItem = { | ||
6 | id: number | ||
7 | label: string | ||
8 | support: string | ||
9 | avatarPath?: string | ||
10 | } | ||
11 | |||
5 | @Component({ | 12 | @Component({ |
6 | selector: 'my-select-channel', | 13 | selector: 'my-select-channel', |
7 | styleUrls: [ './select-shared.component.scss' ], | 14 | styleUrls: [ './select-shared.component.scss' ], |
@@ -15,7 +22,7 @@ import { Actor } from '../shared-main' | |||
15 | ] | 22 | ] |
16 | }) | 23 | }) |
17 | export class SelectChannelComponent implements ControlValueAccessor { | 24 | export class SelectChannelComponent implements ControlValueAccessor { |
18 | @Input() items: { id: number, label: string, support: string, avatarPath?: string }[] = [] | 25 | @Input() items: SelectChannelItem[] = [] |
19 | 26 | ||
20 | selectedId: number | 27 | selectedId: number |
21 | 28 | ||