ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix privacy/channel select on upload
Chocobozzz30b1e1060371
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.tsindex 416b655a45..32a17052a5 100644--- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts+++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts@@ -185,9 +185,9 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroythis.form.patchValue({name,- privacy,+ privacy: this.firstStepPrivacyId,nsfw,- channelId,+ channelId: this.firstStepChannelId,previewfile: this.previewfileUpload})diff --git a/client/src/app/shared/shared-forms/select/select-options.component.html b/client/src/app/shared/shared-forms/select/select-options.component.htmlindex 48eca1cf54..6d0d7e9255 100644--- a/client/src/app/shared/shared-forms/select/select-options.component.html+++ b/client/src/app/shared/shared-forms/select/select-options.component.html@@ -4,6 +4,7 @@[(ngModel)]="selectedId"(ngModelChange)="onModelChange()"[clearable]="clearable"+ [labelForId]="labelForId"[searchable]="searchable"bindLabel="label"diff --git a/client/src/app/shared/shared-forms/select/select-options.component.ts b/client/src/app/shared/shared-forms/select/select-options.component.tsindex 3ba24c7329..f0abd1a680 100644--- a/client/src/app/shared/shared-forms/select/select-options.component.ts+++ b/client/src/app/shared/shared-forms/select/select-options.component.ts@@ -1,5 +1,5 @@-import { Component, Input, forwardRef } from '@angular/core'-import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'+import { Component, forwardRef, Input } from '@angular/core'+import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'export type SelectOptionsItem = {id: string | number@@ -26,6 +26,7 @@ export class SelectOptionsComponent implements ControlValueAccessor {@Input() clearable = false@Input() searchable = false@Input() groupBy: string+ @Input() labelForId: stringselectedId: number | string