aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/user-subscription/index.ts2
-rw-r--r--client/src/app/shared/video-channel/video-channel.service.ts10
2 files changed, 6 insertions, 6 deletions
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(