diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-16 22:13:07 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-16 22:13:07 +0100 |
commit | a0dedc02ca870a31298eb35d5105a1ebc34dbb4a (patch) | |
tree | ca4db4ff9aa0576e22cb3db853a3a4643f9a12b6 /client/src/app/+video-channels/video-channels.component.ts | |
parent | 2de7f588eb7185525cc8687872fed443a24fd27b (diff) | |
download | PeerTube-a0dedc02ca870a31298eb35d5105a1ebc34dbb4a.tar.gz PeerTube-a0dedc02ca870a31298eb35d5105a1ebc34dbb4a.tar.zst PeerTube-a0dedc02ca870a31298eb35d5105a1ebc34dbb4a.zip |
(consistency) channel nameWithHost copy button, comment avatar link
Diffstat (limited to 'client/src/app/+video-channels/video-channels.component.ts')
-rw-r--r-- | client/src/app/+video-channels/video-channels.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index d2975b67c..5ef46c58a 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts | |||
@@ -5,7 +5,7 @@ import { VideoChannelService } from '@app/shared/video-channel/video-channel.ser | |||
5 | import { RestExtractor } from '@app/shared' | 5 | import { RestExtractor } from '@app/shared' |
6 | import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' | 6 | import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' |
7 | import { Subscription } from 'rxjs' | 7 | import { Subscription } from 'rxjs' |
8 | import { AuthService } from '@app/core' | 8 | import { AuthService, Notifier } from '@app/core' |
9 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | 9 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' |
10 | import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' | 10 | import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' |
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | 11 | import { I18n } from '@ngx-translate/i18n-polyfill' |
@@ -25,6 +25,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
25 | constructor ( | 25 | constructor ( |
26 | private i18n: I18n, | 26 | private i18n: I18n, |
27 | private route: ActivatedRoute, | 27 | private route: ActivatedRoute, |
28 | private notifier: Notifier, | ||
28 | private authService: AuthService, | 29 | private authService: AuthService, |
29 | private videoChannelService: VideoChannelService, | 30 | private videoChannelService: VideoChannelService, |
30 | private restExtractor: RestExtractor, | 31 | private restExtractor: RestExtractor, |
@@ -62,4 +63,8 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
62 | isUserLoggedIn () { | 63 | isUserLoggedIn () { |
63 | return this.authService.isLoggedIn() | 64 | return this.authService.isLoggedIn() |
64 | } | 65 | } |
66 | |||
67 | activateCopiedMessage () { | ||
68 | this.notifier.success(this.i18n('Username copied')) | ||
69 | } | ||
65 | } | 70 | } |