X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fuser-subscription%2Fsubscribe-button.component.ts;h=b04e230f0b3173ec25eb101b5347b9d48f180287;hb=405ec98b916df9afb114ad20e847221d4eb94eea;hp=25515f6ea31cd6367673c3720ad739edefb34323;hpb=85c1df6ae899be2b1bdd9691b38a2a2b94bffdcf;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..b04e230f0 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) @@ -100,12 +108,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) - } }