aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-22 11:51:39 +0200
committerChocobozzz <me@florianbigard.com>2018-08-27 09:41:54 +0200
commitf6eebcb336c067e160a62020a5140d8d992ba384 (patch)
tree48fbf9c292243c9cc13beb3749eceaf61fe2baef /client/src/app
parent22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (diff)
downloadPeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.tar.gz
PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.tar.zst
PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.zip
Add ability to search a video with an URL
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/header/header.component.scss2
-rw-r--r--client/src/app/shared/user-subscription/index.ts2
-rw-r--r--client/src/app/shared/video-channel/video-channel.service.ts10
3 files changed, 7 insertions, 7 deletions
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 @@
4#search-video { 4#search-video {
5 @include peertube-input-text($search-input-width); 5 @include peertube-input-text($search-input-width);
6 margin-right: 15px; 6 margin-right: 15px;
7 padding-right: 25px; // For the search icon 7 padding-right: 40px; // For the search icon
8 8
9 &::placeholder { 9 &::placeholder {
10 color: #000; 10 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 @@
1export * from './user-subscription.service' 1export * from './user-subscription.service'
2export * from './subscribe-button.component' \ No newline at end of file 2export * 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 {
17 17
18 videoChannelLoaded = new ReplaySubject<VideoChannel>(1) 18 videoChannelLoaded = new ReplaySubject<VideoChannel>(1)
19 19
20 constructor (
21 private authHttp: HttpClient,
22 private restExtractor: RestExtractor
23 ) {}
24
25 static extractVideoChannels (result: ResultList<VideoChannelServer>) { 20 static extractVideoChannels (result: ResultList<VideoChannelServer>) {
26 const videoChannels: VideoChannel[] = [] 21 const videoChannels: VideoChannel[] = []
27 22
@@ -32,6 +27,11 @@ export class VideoChannelService {
32 return { data: videoChannels, total: result.total } 27 return { data: videoChannels, total: result.total }
33 } 28 }
34 29
30 constructor (
31 private authHttp: HttpClient,
32 private restExtractor: RestExtractor
33 ) { }
34
35 getVideoChannel (videoChannelName: string) { 35 getVideoChannel (videoChannelName: string) {
36 return this.authHttp.get<VideoChannel>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName) 36 return this.authHttp.get<VideoChannel>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName)
37 .pipe( 37 .pipe(