diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-18 14:21:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-18 14:21:26 +0100 |
commit | ff2cac9fa361a3c5489078f441ed54230c045971 (patch) | |
tree | 4b3a6fb8b9f4ed00694bb14132e0b12a82d88509 | |
parent | 021c42657fe647e0561634f4a3bde3bf5644cac8 (diff) | |
download | PeerTube-ff2cac9fa361a3c5489078f441ed54230c045971.tar.gz PeerTube-ff2cac9fa361a3c5489078f441ed54230c045971.tar.zst PeerTube-ff2cac9fa361a3c5489078f441ed54230c045971.zip |
Fix accept ownership change accept
-rw-r--r-- | client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts index 587a455f0..51e9b2a6d 100644 --- a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts +++ b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { switchMap } from 'rxjs/operators' | ||
1 | import { Component, ElementRef, EventEmitter, OnInit, Output, ViewChild } from '@angular/core' | 2 | import { Component, ElementRef, EventEmitter, OnInit, Output, ViewChild } from '@angular/core' |
2 | import { AuthService, Notifier } from '@app/core' | 3 | import { AuthService, Notifier } from '@app/core' |
3 | import { OWNERSHIP_CHANGE_CHANNEL_VALIDATOR } from '@app/shared/form-validators/video-ownership-change-validators' | 4 | 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 { | |||
36 | ngOnInit () { | 37 | ngOnInit () { |
37 | this.videoChannels = [] | 38 | this.videoChannels = [] |
38 | 39 | ||
39 | this.videoChannelService.listAccountVideoChannels(this.authService.getUser().account) | 40 | this.authService.userInformationLoaded |
41 | .pipe(switchMap(() => this.videoChannelService.listAccountVideoChannels(this.authService.getUser().account))) | ||
40 | .subscribe(videoChannels => this.videoChannels = videoChannels.data) | 42 | .subscribe(videoChannels => this.videoChannels = videoChannels.data) |
41 | 43 | ||
42 | this.buildForm({ | 44 | this.buildForm({ |