Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix lint & build

Chocobozzzf0622431848f
diff --git a/client/src/app/+videos-publish-manage/shared-manage/common/video-edit.model.ts b/client/src/app/+videos-publish-manage/shared-manage/common/video-edit.model.ts
index 7329b3af9d..c4e8949b12 100644
--- a/client/src/app/+videos-publish-manage/shared-manage/common/video-edit.model.ts
+++ b/client/src/app/+videos-publish-manage/shared-manage/common/video-edit.model.ts
@@ -662,6 +662,8 @@ export class VideoEdit {
this.metadata.channelName = options.name
this.metadata.channelDisplayName = options.displayName
this.metadata.accountName = options.ownerAccountName
+
+ this.updateAfterChange()
}
toCommonFormPatch () {
diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html
index 865222c86d..637146b75d 100644
--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html
+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html
@@ -98,7 +98,7 @@
<my-select-channel-auto
class="d-block" inputId="adminChannel" formControlName="channelId"
[ownerAccount]="{ name: initialOwner.accountName }" [ownerChannel]="{ id: initialOwner.channelId }"
- (onChannelChanged)="onChannelChanged($event)"
+ (channelChanged)="onChannelChanged($event)"
></my-select-channel-auto>
</div>
diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts
index 720ecc2a9e..18b82d9b84 100644
--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts
+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts
@@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common'
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, NgZone, OnDestroy, OnInit, viewChild } from '@angular/core'
import { AbstractControl, FormArray, FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms'
import { Router, RouterLink } from '@angular/router'
-import { AuthService, ConfirmService, HooksService, Notifier, PluginService, ServerService } from '@app/core'
+import { ConfirmService, HooksService, Notifier, PluginService, ServerService } from '@app/core'
import { BuildFormArgument, BuildFormValidator } from '@app/shared/form-validators/form-validator.model'
import {
VIDEO_CATEGORY_VALIDATOR,
@@ -113,7 +113,6 @@ type Form = {
})
export class VideoMainInfoComponent implements OnInit, OnDestroy {
private formValidatorService = inject(FormValidatorService)
- private authService = inject(AuthService)
private formReactiveService = inject(FormReactiveService)
private videoService = inject(VideoService)
private serverService = inject(ServerService)