diff options
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.html | 4 | ||||
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 6 |
2 files changed, 1 insertions, 9 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index d80b633df..4c650b121 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html | |||
@@ -1,10 +1,8 @@ | |||
1 | <div class="row"> | 1 | <div class="row"> |
2 | <!-- We need the video container for videojs so we just hide it --> | 2 | <!-- We need the video container for videojs so we just hide it --> |
3 | <div [hidden]="videoNotFound" id="video-element-wrapper"> | 3 | <div id="video-element-wrapper"> |
4 | </div> | 4 | </div> |
5 | 5 | ||
6 | <div i18n *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | ||
7 | |||
8 | <!-- Video information --> | 6 | <!-- Video information --> |
9 | <div *ngIf="video" class="margin-content video-bottom"> | 7 | <div *ngIf="video" class="margin-content video-bottom"> |
10 | <div class="video-info"> | 8 | <div class="video-info"> |
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 4a67d456e..7ba8d1fa4 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -46,7 +46,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
46 | playerElement: HTMLVideoElement | 46 | playerElement: HTMLVideoElement |
47 | userRating: UserVideoRateType = null | 47 | userRating: UserVideoRateType = null |
48 | video: VideoDetails = null | 48 | video: VideoDetails = null |
49 | videoNotFound = false | ||
50 | descriptionLoading = false | 49 | descriptionLoading = false |
51 | 50 | ||
52 | completeDescriptionShown = false | 51 | completeDescriptionShown = false |
@@ -119,11 +118,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
119 | const startTime = this.route.snapshot.queryParams.start | 118 | const startTime = this.route.snapshot.queryParams.start |
120 | this.onVideoFetched(video, startTime) | 119 | this.onVideoFetched(video, startTime) |
121 | .catch(err => this.handleError(err)) | 120 | .catch(err => this.handleError(err)) |
122 | }, | ||
123 | |||
124 | error => { | ||
125 | this.videoNotFound = true | ||
126 | console.error(error) | ||
127 | } | 121 | } |
128 | ) | 122 | ) |
129 | }) | 123 | }) |