diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/video-update.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-update.component.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts index 6cd204f72..73e2764c6 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts | |||
@@ -9,9 +9,9 @@ import { ServerService } from '../../core' | |||
9 | import { AuthService } from '../../core/auth' | 9 | import { AuthService } from '../../core/auth' |
10 | import { FormReactive } from '../../shared' | 10 | import { FormReactive } from '../../shared' |
11 | import { ValidatorMessage } from '../../shared/forms/form-validators/validator-message' | 11 | import { ValidatorMessage } from '../../shared/forms/form-validators/validator-message' |
12 | import { populateAsyncUserVideoChannels } from '../../shared/misc/utils' | ||
13 | import { VideoEdit } from '../../shared/video/video-edit.model' | 12 | import { VideoEdit } from '../../shared/video/video-edit.model' |
14 | import { VideoService } from '../../shared/video/video.service' | 13 | import { VideoService } from '../../shared/video/video.service' |
14 | import { populateAsyncUserVideoChannels } from '@app/shared/misc/utils' | ||
15 | 15 | ||
16 | @Component({ | 16 | @Component({ |
17 | selector: 'my-videos-update', | 17 | selector: 'my-videos-update', |
@@ -64,12 +64,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
64 | video => { | 64 | video => { |
65 | this.video = new VideoEdit(video) | 65 | this.video = new VideoEdit(video) |
66 | 66 | ||
67 | this.userVideoChannels = [ | 67 | populateAsyncUserVideoChannels(this.authService, this.userVideoChannels) |
68 | { | 68 | .catch(err => console.error(err)) |
69 | id: video.channel.id, | ||
70 | label: video.channel.displayName | ||
71 | } | ||
72 | ] | ||
73 | 69 | ||
74 | // We cannot set private a video that was not private | 70 | // We cannot set private a video that was not private |
75 | if (video.privacy.id !== VideoPrivacy.PRIVATE) { | 71 | if (video.privacy.id !== VideoPrivacy.PRIVATE) { |