aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/select-channel.component.ts
diff options
context:
space:
mode:
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.ts13
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 @@
1import { Component, Input, forwardRef, ViewChild } from '@angular/core' 1import { Component, forwardRef, Input } from '@angular/core'
2import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms' 2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
3import { Actor } from '../shared-main' 3import { Actor } from '../shared-main'
4 4
5export 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})
17export class SelectChannelComponent implements ControlValueAccessor { 24export 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