X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-forms%2Fselect%2Fselect-custom-value.component.ts;h=bc6b863c72a136dbfa8ed6452ca22aa1ca70d506;hb=fa12eacc014aae8094d108634371640f2695bf9f;hp=a8e5ad0d323e4ca0e384362382c42fbbc9853cd9;hpb=ead64cdf8d917fa0d6a20271e42378f38e5f2407;p=github%2FChocobozzz%2FPeerTube.git 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 @@ import { Component, forwardRef, Input, OnChanges } from '@angular/core' import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' -import { SelectOptionsItem } from './select-options.component' +import { SelectOptionsItem } from '../../../../types/select-options-item.model' @Component({ selector: 'my-select-custom-value', @@ -20,6 +20,8 @@ export class SelectCustomValueComponent implements ControlValueAccessor, OnChang @Input() searchable = false @Input() groupBy: string @Input() labelForId: string + @Input() inputSuffix: string + @Input() inputType = 'text' customValue: number | string = '' selectedId: number | string