diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-10 09:05:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-10 11:36:40 +0100 |
commit | 21e493d4d8acb7a650eff3a30cd7e086b3cb8a28 (patch) | |
tree | f3a451d6a59925907c62b0c36db99745a43b67db /client/src/app/shared/shared-forms/select/select-custom-value.component.ts | |
parent | ead64cdf8d917fa0d6a20271e42378f38e5f2407 (diff) | |
download | PeerTube-21e493d4d8acb7a650eff3a30cd7e086b3cb8a28.tar.gz PeerTube-21e493d4d8acb7a650eff3a30cd7e086b3cb8a28.tar.zst PeerTube-21e493d4d8acb7a650eff3a30cd7e086b3cb8a28.zip |
Add ability to set a custom quota
Diffstat (limited to 'client/src/app/shared/shared-forms/select/select-custom-value.component.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/select/select-custom-value.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-custom-value.component.ts b/client/src/app/shared/shared-forms/select/select-custom-value.component.ts index a8e5ad0d3..bc6b863c7 100644 --- a/client/src/app/shared/shared-forms/select/select-custom-value.component.ts +++ b/client/src/app/shared/shared-forms/select/select-custom-value.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, forwardRef, Input, OnChanges } from '@angular/core' | 1 | import { Component, forwardRef, Input, OnChanges } from '@angular/core' |
2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import { SelectOptionsItem } from './select-options.component' | 3 | import { SelectOptionsItem } from '../../../../types/select-options-item.model' |
4 | 4 | ||
5 | @Component({ | 5 | @Component({ |
6 | selector: 'my-select-custom-value', | 6 | selector: 'my-select-custom-value', |
@@ -20,6 +20,8 @@ export class SelectCustomValueComponent implements ControlValueAccessor, OnChang | |||
20 | @Input() searchable = false | 20 | @Input() searchable = false |
21 | @Input() groupBy: string | 21 | @Input() groupBy: string |
22 | @Input() labelForId: string | 22 | @Input() labelForId: string |
23 | @Input() inputSuffix: string | ||
24 | @Input() inputType = 'text' | ||
23 | 25 | ||
24 | customValue: number | string = '' | 26 | customValue: number | string = '' |
25 | selectedId: number | string | 27 | selectedId: number | string |