Fix privacy/channel select on upload
This commit is contained in:
parent
865af3fd7b
commit
30b1e10603
|
@ -185,9 +185,9 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
|
||||||
|
|
||||||
this.form.patchValue({
|
this.form.patchValue({
|
||||||
name,
|
name,
|
||||||
privacy,
|
privacy: this.firstStepPrivacyId,
|
||||||
nsfw,
|
nsfw,
|
||||||
channelId,
|
channelId: this.firstStepChannelId,
|
||||||
previewfile: this.previewfileUpload
|
previewfile: this.previewfileUpload
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
[(ngModel)]="selectedId"
|
[(ngModel)]="selectedId"
|
||||||
(ngModelChange)="onModelChange()"
|
(ngModelChange)="onModelChange()"
|
||||||
[clearable]="clearable"
|
[clearable]="clearable"
|
||||||
|
[labelForId]="labelForId"
|
||||||
[searchable]="searchable"
|
[searchable]="searchable"
|
||||||
|
|
||||||
bindLabel="label"
|
bindLabel="label"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Component, Input, forwardRef } from '@angular/core'
|
import { Component, forwardRef, Input } from '@angular/core'
|
||||||
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
|
||||||
|
|
||||||
export type SelectOptionsItem = {
|
export type SelectOptionsItem = {
|
||||||
id: string | number
|
id: string | number
|
||||||
|
@ -26,6 +26,7 @@ export class SelectOptionsComponent implements ControlValueAccessor {
|
||||||
@Input() clearable = false
|
@Input() clearable = false
|
||||||
@Input() searchable = false
|
@Input() searchable = false
|
||||||
@Input() groupBy: string
|
@Input() groupBy: string
|
||||||
|
@Input() labelForId: string
|
||||||
|
|
||||||
selectedId: number | string
|
selectedId: number | string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user