Fix accept ownership change accept

pull/3334/head
Chocobozzz 2020-11-18 14:21:26 +01:00
parent 021c42657f
commit ff2cac9fa3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { switchMap } from 'rxjs/operators'
import { Component, ElementRef, EventEmitter, OnInit, Output, ViewChild } from '@angular/core'
import { AuthService, Notifier } from '@app/core'
import { OWNERSHIP_CHANGE_CHANNEL_VALIDATOR } from '@app/shared/form-validators/video-ownership-change-validators'
@ -36,7 +37,8 @@ export class MyAcceptOwnershipComponent extends FormReactive implements OnInit {
ngOnInit () {
this.videoChannels = []
this.videoChannelService.listAccountVideoChannels(this.authService.getUser().account)
this.authService.userInformationLoaded
.pipe(switchMap(() => this.videoChannelService.listAccountVideoChannels(this.authService.getUser().account)))
.subscribe(videoChannels => this.videoChannels = videoChannels.data)
this.buildForm({