From f6eebcb336c067e160a62020a5140d8d992ba384 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Aug 2018 11:51:39 +0200 Subject: Add ability to search a video with an URL --- client/src/app/header/header.component.scss | 2 +- client/src/app/shared/user-subscription/index.ts | 2 +- client/src/app/shared/video-channel/video-channel.service.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client/src') diff --git a/client/src/app/header/header.component.scss b/client/src/app/header/header.component.scss index d79e6274b..6ce92fc22 100644 --- a/client/src/app/header/header.component.scss +++ b/client/src/app/header/header.component.scss @@ -4,7 +4,7 @@ #search-video { @include peertube-input-text($search-input-width); margin-right: 15px; - padding-right: 25px; // For the search icon + padding-right: 40px; // For the search icon &::placeholder { color: #000; diff --git a/client/src/app/shared/user-subscription/index.ts b/client/src/app/shared/user-subscription/index.ts index 024b36a41..faddae66a 100644 --- a/client/src/app/shared/user-subscription/index.ts +++ b/client/src/app/shared/user-subscription/index.ts @@ -1,2 +1,2 @@ export * from './user-subscription.service' -export * from './subscribe-button.component' \ No newline at end of file +export * from './subscribe-button.component' diff --git a/client/src/app/shared/video-channel/video-channel.service.ts b/client/src/app/shared/video-channel/video-channel.service.ts index 46b121790..c94411146 100644 --- a/client/src/app/shared/video-channel/video-channel.service.ts +++ b/client/src/app/shared/video-channel/video-channel.service.ts @@ -17,11 +17,6 @@ export class VideoChannelService { videoChannelLoaded = new ReplaySubject(1) - constructor ( - private authHttp: HttpClient, - private restExtractor: RestExtractor - ) {} - static extractVideoChannels (result: ResultList) { const videoChannels: VideoChannel[] = [] @@ -32,6 +27,11 @@ export class VideoChannelService { return { data: videoChannels, total: result.total } } + constructor ( + private authHttp: HttpClient, + private restExtractor: RestExtractor + ) { } + getVideoChannel (videoChannelName: string) { return this.authHttp.get(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName) .pipe( -- cgit v1.2.3