diff options
Diffstat (limited to 'client/angular/videos/components')
-rw-r--r-- | client/angular/videos/components/list/videos-list.component.html | 1 | ||||
-rw-r--r-- | client/angular/videos/components/list/videos-list.component.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/client/angular/videos/components/list/videos-list.component.html b/client/angular/videos/components/list/videos-list.component.html index 75b860f38..9e51675dd 100644 --- a/client/angular/videos/components/list/videos-list.component.html +++ b/client/angular/videos/components/list/videos-list.component.html | |||
@@ -1,3 +1,4 @@ | |||
1 | <div *ngIf="videos.length === 0">There is no video.</div> | ||
1 | <div *ngFor="#video of videos" class="video"> | 2 | <div *ngFor="#video of videos" class="video"> |
2 | <div> | 3 | <div> |
3 | <a [routerLink]="['VideosWatch', { id: video.id }]" class="video_name">{{ video.name }}</a> | 4 | <a [routerLink]="['VideosWatch', { id: video.id }]" class="video_name">{{ video.name }}</a> |
diff --git a/client/angular/videos/components/list/videos-list.component.ts b/client/angular/videos/components/list/videos-list.component.ts index 425d2dcfc..b081522c7 100644 --- a/client/angular/videos/components/list/videos-list.component.ts +++ b/client/angular/videos/components/list/videos-list.component.ts | |||
@@ -15,7 +15,7 @@ import { Video } from '../../models/video'; | |||
15 | 15 | ||
16 | export class VideosListComponent implements OnInit { | 16 | export class VideosListComponent implements OnInit { |
17 | user: User = null; | 17 | user: User = null; |
18 | videos: Video[]; | 18 | videos: Video[] = []; |
19 | 19 | ||
20 | private search: string; | 20 | private search: string; |
21 | 21 | ||