mirror of https://github.com/Chocobozzz/PeerTube
Write something if there is no video
parent
4bdc2cc935
commit
d908a155df
|
@ -1,3 +1,4 @@
|
|||
<div *ngIf="videos.length === 0">There is no video.</div>
|
||||
<div *ngFor="#video of videos" class="video">
|
||||
<div>
|
||||
<a [routerLink]="['VideosWatch', { id: video.id }]" class="video_name">{{ video.name }}</a>
|
||||
|
|
|
@ -15,7 +15,7 @@ import { Video } from '../../models/video';
|
|||
|
||||
export class VideosListComponent implements OnInit {
|
||||
user: User = null;
|
||||
videos: Video[];
|
||||
videos: Video[] = [];
|
||||
|
||||
private search: string;
|
||||
|
||||
|
|
Loading…
Reference in New Issue