diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-20 20:20:09 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-20 20:20:09 +0200 |
commit | b632e9049fccea12c016556cfef3ab621aa683d2 (patch) | |
tree | d1c8428c100b397174b59acc96bdf17611abae00 /client/src/app | |
parent | a988e81c0e5faf0be58d303448659e9697c40901 (diff) | |
download | PeerTube-b632e9049fccea12c016556cfef3ab621aa683d2.tar.gz PeerTube-b632e9049fccea12c016556cfef3ab621aa683d2.tar.zst PeerTube-b632e9049fccea12c016556cfef3ab621aa683d2.zip |
Fix client compilation
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+admin/friends/shared/index.ts | 1 | ||||
-rw-r--r-- | client/src/app/shared/video-abuse/index.ts | 1 | ||||
-rw-r--r-- | client/src/app/videos/shared/index.ts | 1 | ||||
-rw-r--r-- | client/src/app/videos/shared/video.service.ts | 4 | ||||
-rw-r--r-- | client/src/app/videos/video-watch/video-watch.component.ts | 2 |
5 files changed, 3 insertions, 6 deletions
diff --git a/client/src/app/+admin/friends/shared/index.ts b/client/src/app/+admin/friends/shared/index.ts index 41aa6edd6..65ab9fb46 100644 --- a/client/src/app/+admin/friends/shared/index.ts +++ b/client/src/app/+admin/friends/shared/index.ts | |||
@@ -1,2 +1 @@ | |||
1 | export * from './friend.model' | ||
2 | export * from './friend.service' | export * from './friend.service' | |
diff --git a/client/src/app/shared/video-abuse/index.ts b/client/src/app/shared/video-abuse/index.ts index 7cf24c87d..92cbfb5f9 100644 --- a/client/src/app/shared/video-abuse/index.ts +++ b/client/src/app/shared/video-abuse/index.ts | |||
@@ -1,2 +1 @@ | |||
1 | export * from './video-abuse.service' | export * from './video-abuse.service' | |
2 | export * from './video-abuse.model' | ||
diff --git a/client/src/app/videos/shared/index.ts b/client/src/app/videos/shared/index.ts index 0fa14f641..97d795321 100644 --- a/client/src/app/videos/shared/index.ts +++ b/client/src/app/videos/shared/index.ts | |||
@@ -1,4 +1,3 @@ | |||
1 | export * from './sort-field.type' | 1 | export * from './sort-field.type' |
2 | export * from './rate-type.type' | ||
3 | export * from './video.model' | 2 | export * from './video.model' |
4 | export * from './video.service' | 3 | export * from './video.service' |
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index 977b82118..7658d8ff0 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts | |||
@@ -16,7 +16,7 @@ import { | |||
16 | UserService | 16 | UserService |
17 | } from '../../shared' | 17 | } from '../../shared' |
18 | import { Video } from './video.model' | 18 | import { Video } from './video.model' |
19 | import { VideoRateType } from '../../../../../shared' | 19 | import { UserVideoRate, VideoRateType } from '../../../../../shared' |
20 | 20 | ||
21 | @Injectable() | 21 | @Injectable() |
22 | export class VideoService { | 22 | export class VideoService { |
@@ -145,7 +145,7 @@ export class VideoService { | |||
145 | return this.setVideoRate(id, 'dislike') | 145 | return this.setVideoRate(id, 'dislike') |
146 | } | 146 | } |
147 | 147 | ||
148 | getUserVideoRating (id: string): Observable<VideoRateType> { | 148 | getUserVideoRating (id: string): Observable<UserVideoRate> { |
149 | const url = UserService.BASE_USERS_URL + '/me/videos/' + id + '/rating' | 149 | const url = UserService.BASE_USERS_URL + '/me/videos/' + id + '/rating' |
150 | 150 | ||
151 | return this.authHttp.get(url) | 151 | return this.authHttp.get(url) |
diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts index 808e0eda9..9882ddce8 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts | |||
@@ -249,7 +249,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
249 | 249 | ||
250 | this.videoService.getUserVideoRating(this.video.id) | 250 | this.videoService.getUserVideoRating(this.video.id) |
251 | .subscribe( | 251 | .subscribe( |
252 | (ratingObject: UserVideoRate) => { | 252 | ratingObject => { |
253 | if (ratingObject) { | 253 | if (ratingObject) { |
254 | this.userRating = ratingObject.rating | 254 | this.userRating = ratingObject.rating |
255 | } | 255 | } |