diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-04-28 19:42:57 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-04-28 19:42:57 +0200 |
commit | d908a155df8bb8af9c281587e425b209caa98ef8 (patch) | |
tree | 9a5f4f71c22755768251cba2d7ffbb243cd4f07e /client | |
parent | 4bdc2cc93558701ed22df442cfbf5a60295ed13f (diff) | |
download | PeerTube-d908a155df8bb8af9c281587e425b209caa98ef8.tar.gz PeerTube-d908a155df8bb8af9c281587e425b209caa98ef8.tar.zst PeerTube-d908a155df8bb8af9c281587e425b209caa98ef8.zip |
Write something if there is no video
Diffstat (limited to 'client')
-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 | ||