From a0dedc02ca870a31298eb35d5105a1ebc34dbb4a Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 16 Dec 2019 22:13:07 +0100 Subject: (consistency) channel nameWithHost copy button, comment avatar link --- client/src/app/+video-channels/video-channels.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/app/+video-channels/video-channels.component.ts') 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 import { RestExtractor } from '@app/shared' import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' import { Subscription } from 'rxjs' -import { AuthService } from '@app/core' +import { AuthService, Notifier } from '@app/core' import { Hotkey, HotkeysService } from 'angular2-hotkeys' import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' import { I18n } from '@ngx-translate/i18n-polyfill' @@ -25,6 +25,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { constructor ( private i18n: I18n, private route: ActivatedRoute, + private notifier: Notifier, private authService: AuthService, private videoChannelService: VideoChannelService, private restExtractor: RestExtractor, @@ -62,4 +63,8 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { isUserLoggedIn () { return this.authService.isLoggedIn() } + + activateCopiedMessage () { + this.notifier.success(this.i18n('Username copied')) + } } -- cgit v1.2.3