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>
|
<span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
|
||||||
</button>
|
</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>
|
<div class="mb-1" i18n>Subscribe with a remote account:</div>
|
||||||
<my-remote-subscribe [showHelp]="true" [uri]="uri"></my-remote-subscribe>
|
<my-remote-subscribe [showHelp]="true" [uri]="uri"></my-remote-subscribe>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -168,6 +168,10 @@ export class SubscribeButtonComponent implements OnInit, OnChanges {
|
||||||
return Array.from(this.subscribed.values()).every(v => v === true)
|
return Array.from(this.subscribed.values()).every(v => v === true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isRemoteSubscribeAvailable () {
|
||||||
|
return !this.isUserLoggedIn()
|
||||||
|
}
|
||||||
|
|
||||||
private getChannelHandler (videoChannel: VideoChannel) {
|
private getChannelHandler (videoChannel: VideoChannel) {
|
||||||
return videoChannel.name + '@' + videoChannel.host
|
return videoChannel.name + '@' + videoChannel.host
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue