ngOnInit () {
this.setUpBy()
- if (this.screenService.isInSmallView()) {
- this.showActions = true
+ // We rely on mouseenter to lazy load actions
+ if (this.screenService.isInTouchScreen()) {
+ this.loadActions()
}
}
}
getStateLabel (video: Video) {
+ if (!video.state) return ''
+
if (video.privacy.id !== VideoPrivacy.PRIVATE && video.state.id === VideoState.PUBLISHED) {
return this.i18n('Published')
}