aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-28 19:42:57 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-28 19:42:57 +0200
commitd908a155df8bb8af9c281587e425b209caa98ef8 (patch)
tree9a5f4f71c22755768251cba2d7ffbb243cd4f07e /client/angular
parent4bdc2cc93558701ed22df442cfbf5a60295ed13f (diff)
downloadPeerTube-d908a155df8bb8af9c281587e425b209caa98ef8.tar.gz
PeerTube-d908a155df8bb8af9c281587e425b209caa98ef8.tar.zst
PeerTube-d908a155df8bb8af9c281587e425b209caa98ef8.zip
Write something if there is no video
Diffstat (limited to 'client/angular')
-rw-r--r--client/angular/videos/components/list/videos-list.component.html1
-rw-r--r--client/angular/videos/components/list/videos-list.component.ts2
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
16export class VideosListComponent implements OnInit { 16export 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