aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/shared/shared-user-subscription/subscribe-button.component.html2
-rw-r--r--client/src/app/shared/shared-user-subscription/subscribe-button.component.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-user-subscription/subscribe-button.component.html b/client/src/app/shared/shared-user-subscription/subscribe-button.component.html
index d8699ff69..d08d7f4ed 100644
--- a/client/src/app/shared/shared-user-subscription/subscribe-button.component.html
+++ b/client/src/app/shared/shared-user-subscription/subscribe-button.component.html
@@ -58,7 +58,7 @@
58 <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span> 58 <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
59 </button> 59 </button>
60 60
61 <button class="dropdown-item dropdown-item-neutral"> 61 <button *ngIf="isRemoteSubscribeAvailable()" class="dropdown-item dropdown-item-neutral">
62 <div class="mb-1" i18n>Subscribe with a remote account:</div> 62 <div class="mb-1" i18n>Subscribe with a remote account:</div>
63 <my-remote-subscribe [showHelp]="true" [uri]="uri"></my-remote-subscribe> 63 <my-remote-subscribe [showHelp]="true" [uri]="uri"></my-remote-subscribe>
64 </button> 64 </button>
diff --git a/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts b/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts
index 180bc0565..7a55a6ffb 100644
--- a/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts
+++ b/client/src/app/shared/shared-user-subscription/subscribe-button.component.ts
@@ -168,6 +168,10 @@ export class SubscribeButtonComponent implements OnInit, OnChanges {
168 return Array.from(this.subscribed.values()).every(v => v === true) 168 return Array.from(this.subscribed.values()).every(v => v === true)
169 } 169 }
170 170
171 isRemoteSubscribeAvailable () {
172 return !this.isUserLoggedIn()
173 }
174
171 private getChannelHandler (videoChannel: VideoChannel) { 175 private getChannelHandler (videoChannel: VideoChannel) {
172 return videoChannel.name + '@' + videoChannel.host 176 return videoChannel.name + '@' + videoChannel.host
173 } 177 }