mirror of https://github.com/Chocobozzz/PeerTube
Hide remote subscribe if logged in
parent
6ea9295b8f
commit
1d54b2052c
|
@ -58,7 +58,7 @@
|
|||
<span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
|
||||
</button>
|
||||
|
||||
<button class="dropdown-item dropdown-item-neutral">
|
||||
<button *ngIf="isRemoteSubscribeAvailable()" class="dropdown-item dropdown-item-neutral">
|
||||
<div class="mb-1" i18n>Subscribe with a remote account:</div>
|
||||
<my-remote-subscribe [showHelp]="true" [uri]="uri"></my-remote-subscribe>
|
||||
</button>
|
||||
|
|
|
@ -168,6 +168,10 @@ export class SubscribeButtonComponent implements OnInit, OnChanges {
|
|||
return Array.from(this.subscribed.values()).every(v => v === true)
|
||||
}
|
||||
|
||||
isRemoteSubscribeAvailable () {
|
||||
return !this.isUserLoggedIn()
|
||||
}
|
||||
|
||||
private getChannelHandler (videoChannel: VideoChannel) {
|
||||
return videoChannel.name + '@' + videoChannel.host
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue