diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-04 16:04:50 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-04 16:04:50 +0100 |
commit | d1992b93f0f4a4408f803d6320cd26a713e22d5b (patch) | |
tree | e01a8d5b6c37ebdf0f2a190a374d7b97c0508d8b /client/src/app/videos/shared | |
parent | 4d19d2f10b691650abe030d0dbb52dc7c8a62441 (diff) | |
download | PeerTube-d1992b93f0f4a4408f803d6320cd26a713e22d5b.tar.gz PeerTube-d1992b93f0f4a4408f803d6320cd26a713e22d5b.tar.zst PeerTube-d1992b93f0f4a4408f803d6320cd26a713e22d5b.zip |
Client: add more informations to watch video view
Diffstat (limited to 'client/src/app/videos/shared')
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 1 | ||||
-rw-r--r-- | client/src/app/videos/shared/video.service.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 65417f751..873c83ff1 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -21,6 +21,7 @@ export class Video { | |||
21 | port = ':' + port; | 21 | port = ':' + port; |
22 | } | 22 | } |
23 | 23 | ||
24 | |||
24 | return author + '@' + host + port; | 25 | return author + '@' + host + port; |
25 | } | 26 | } |
26 | 27 | ||
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index ad8557533..b1f688095 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts | |||
@@ -22,6 +22,7 @@ export class VideoService { | |||
22 | getVideo(id: string): Observable<Video> { | 22 | getVideo(id: string): Observable<Video> { |
23 | return this.http.get(VideoService.BASE_VIDEO_URL + id) | 23 | return this.http.get(VideoService.BASE_VIDEO_URL + id) |
24 | .map(this.restExtractor.extractDataGet) | 24 | .map(this.restExtractor.extractDataGet) |
25 | .map(video_hash => new Video(video_hash)) | ||
25 | .catch((res) => this.restExtractor.handleError(res)); | 26 | .catch((res) => this.restExtractor.handleError(res)); |
26 | } | 27 | } |
27 | 28 | ||