diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-29 15:56:01 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-03-31 09:05:51 +0200 |
commit | 100d9ce23bb7c5186132607e4c444f9cba5002a4 (patch) | |
tree | 2028938d90321c6d2454c4aea2e6f24e53393a4a /client/src/app/+video-channels/video-channels.component.ts | |
parent | 900f7820814b95b07ef0bcac04036a95abfbe060 (diff) | |
download | PeerTube-100d9ce23bb7c5186132607e4c444f9cba5002a4.tar.gz PeerTube-100d9ce23bb7c5186132607e4c444f9cba5002a4.tar.zst PeerTube-100d9ce23bb7c5186132607e4c444f9cba5002a4.zip |
Add support button in channel page
Diffstat (limited to 'client/src/app/+video-channels/video-channels.component.ts')
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 4fcc42103..a8ca3d6ff 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts | |||
@@ -5,6 +5,7 @@ import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core' | |||
5 | import { ActivatedRoute } from '@angular/router' | 5 | import { ActivatedRoute } from '@angular/router' |
6 | import { AuthService, MarkdownService, Notifier, RestExtractor, ScreenService } from '@app/core' | 6 | import { AuthService, MarkdownService, Notifier, RestExtractor, ScreenService } from '@app/core' |
7 | import { ListOverflowItem, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' | 7 | import { ListOverflowItem, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' |
8 | import { SupportModalComponent } from '@app/shared/shared-support-modal' | ||
8 | import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription' | 9 | import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription' |
9 | import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' | 10 | import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' |
10 | 11 | ||
@@ -14,6 +15,7 @@ import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' | |||
14 | }) | 15 | }) |
15 | export class VideoChannelsComponent implements OnInit, OnDestroy { | 16 | export class VideoChannelsComponent implements OnInit, OnDestroy { |
16 | @ViewChild('subscribeButton') subscribeButton: SubscribeButtonComponent | 17 | @ViewChild('subscribeButton') subscribeButton: SubscribeButtonComponent |
18 | @ViewChild('supportModal') supportModal: SupportModalComponent | ||
17 | 19 | ||
18 | videoChannel: VideoChannel | 20 | videoChannel: VideoChannel |
19 | hotkeys: Hotkey[] | 21 | hotkeys: Hotkey[] |
@@ -101,6 +103,10 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
101 | this.notifier.success($localize`Username copied`) | 103 | this.notifier.success($localize`Username copied`) |
102 | } | 104 | } |
103 | 105 | ||
106 | showSupportModal () { | ||
107 | this.supportModal.show() | ||
108 | } | ||
109 | |||
104 | private loadChannelVideosCount () { | 110 | private loadChannelVideosCount () { |
105 | this.videoService.getVideoChannelVideos({ | 111 | this.videoService.getVideoChannelVideos({ |
106 | videoChannel: this.videoChannel, | 112 | videoChannel: this.videoChannel, |