X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fuser-subscription%2Fsubscribe-button.component.ts;h=7180400b55f78af4e7e6b238e6a11b0ab9902a73;hb=440d39c52d4efb878b6a2e21584d6b8f52072f27;hp=25515f6ea31cd6367673c3720ad739edefb34323;hpb=b91bc1d1f3591c35ab4426f6ab594b4bd9f1ef62;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.ts b/client/src/app/shared/user-subscription/subscribe-button.component.ts index 25515f6ea..7180400b5 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/user-subscription/subscribe-button.component.ts @@ -36,6 +36,14 @@ export class SubscribeButtonComponent implements OnInit { return this.videoChannel.url } + get rssUri () { + const rssFeed = this.videoService + .getVideoChannelFeedUrls(this.videoChannel.id) + .find(i => i.format === FeedFormat.RSS) + + return rssFeed.url + } + ngOnInit () { if (this.isUserLoggedIn()) { this.userSubscriptionService.doesSubscriptionExist(this.channelHandle) @@ -62,7 +70,11 @@ export class SubscribeButtonComponent implements OnInit { this.subscribed = true this.notifier.success( - this.i18n('Subscribed to {{nameWithHost}}', { nameWithHost: this.videoChannel.displayName }), + this.i18n( + 'Subscribed to {{nameWithHost}}. ' + + 'You will be notified of all their new videos.', + { nameWithHost: this.videoChannel.displayName } + ), this.i18n('Subscribed') ) }, @@ -100,12 +112,4 @@ export class SubscribeButtonComponent implements OnInit { gotoLogin () { this.router.navigate([ '/login' ]) } - - rssOpen () { - const rssFeed = this.videoService - .getVideoChannelFeedUrls(this.videoChannel.id) - .find(i => i.format === FeedFormat.RSS) - - window.open(rssFeed.url) - } }