aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/video-list/video-user-subscriptions.component.ts')
-rw-r--r--client/src/app/+videos/video-list/video-user-subscriptions.component.ts22
1 files changed, 12 insertions, 10 deletions
diff --git a/client/src/app/+videos/video-list/video-user-subscriptions.component.ts b/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
index 6d19707df..62d862ec9 100644
--- a/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
+++ b/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
@@ -60,22 +60,24 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement
60 tokens => { 60 tokens => {
61 const feeds = this.videoService.getVideoSubscriptionFeedUrls(user.account.id, tokens.feedToken) 61 const feeds = this.videoService.getVideoSubscriptionFeedUrls(user.account.id, tokens.feedToken)
62 feedUrl = feedUrl + feeds.find(f => f.format === FeedFormat.RSS).url 62 feedUrl = feedUrl + feeds.find(f => f.format === FeedFormat.RSS).url
63
64 this.actions.unshift({
65 label: $localize`Copy feed URL`,
66 iconName: 'syndication',
67 justIcon: true,
68 href: feedUrl,
69 click: e => {
70 e.preventDefault()
71 copyToClipboard(feedUrl)
72 this.activateCopiedMessage()
73 }
74 })
63 }, 75 },
64 76
65 err => { 77 err => {
66 this.notifier.error(err.message) 78 this.notifier.error(err.message)
67 } 79 }
68 ) 80 )
69
70 this.actions.unshift({
71 label: $localize`Feed`,
72 iconName: 'syndication',
73 justIcon: true,
74 click: () => {
75 copyToClipboard(feedUrl)
76 this.activateCopiedMessage()
77 }
78 })
79 } 81 }
80 82
81 ngOnDestroy () { 83 ngOnDestroy () {