import { AuthService, ConfirmService } from '../../core'
import { VideoBlacklistService } from '../../shared'
import { Account } from '../../shared/account/account.model'
+import { VideoDetails } from '../../shared/video/video-details.model'
import { Video } from '../../shared/video/video.model'
import { MarkdownService } from '../shared'
import { VideoDownloadComponent } from './video-download.component'
import { VideoReportComponent } from './video-report.component'
import { VideoShareComponent } from './video-share.component'
-import { VideoDetails } from '../../shared/video/video-details.model'
@Component({
selector: 'my-video-watch',
return this.authService.isLoggedIn()
}
- canUserUpdateVideo () {
- return this.video.isUpdatableBy(this.authService.getUser())
- }
-
- isVideoRemovable () {
- return this.video.isRemovableBy(this.authService.getUser())
- }
-
isVideoBlacklistable () {
return this.video.isBlackistableBy(this.authService.getUser())
}
}
private setVideoDescriptionHTML () {
+ if (!this.video.description) {
+ this.videoHTMLDescription = ''
+ return
+ }
+
this.videoHTMLDescription = this.markdownService.markdownToHTML(this.video.description)
}