diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:52:41 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:52:41 +0200 |
commit | 9bfe96e19f552a75eed790f8f3b68de11c9b7fef (patch) | |
tree | ea1536162cdfbed0dbbf4fcffc728b69b5e890a6 /client/app/videos/video-list/video-list.component.ts | |
parent | 4fd8aa327004b27530fd96bdde5df60e6745a1f6 (diff) | |
download | PeerTube-9bfe96e19f552a75eed790f8f3b68de11c9b7fef.tar.gz PeerTube-9bfe96e19f552a75eed790f8f3b68de11c9b7fef.tar.zst PeerTube-9bfe96e19f552a75eed790f8f3b68de11c9b7fef.zip |
Put presentation logic in the components
Diffstat (limited to 'client/app/videos/video-list/video-list.component.ts')
-rw-r--r-- | client/app/videos/video-list/video-list.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/app/videos/video-list/video-list.component.ts b/client/app/videos/video-list/video-list.component.ts index 23b97df32..131578681 100644 --- a/client/app/videos/video-list/video-list.component.ts +++ b/client/app/videos/video-list/video-list.component.ts | |||
@@ -80,6 +80,10 @@ export class VideoListComponent implements OnInit { | |||
80 | ); | 80 | ); |
81 | } | 81 | } |
82 | 82 | ||
83 | noVideo() { | ||
84 | return !this.loading && this.videos.length === 0; | ||
85 | } | ||
86 | |||
83 | onRemoved(video: Video) { | 87 | onRemoved(video: Video) { |
84 | this.videos.splice(this.videos.indexOf(video), 1); | 88 | this.videos.splice(this.videos.indexOf(video), 1); |
85 | } | 89 | } |