aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-07 11:15:19 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-07 11:15:19 +0100
commitff249f499ccca2e37757f338384e7ba44c906a69 (patch)
treecb8f88c105536e5edf4bf02030edecfe6b6c0d17 /client/src/app/videos/+video-watch
parent59aa1e5e7541f604363d2a1ebfd670a5d1db245f (diff)
downloadPeerTube-ff249f499ccca2e37757f338384e7ba44c906a69.tar.gz
PeerTube-ff249f499ccca2e37757f338384e7ba44c906a69.tar.zst
PeerTube-ff249f499ccca2e37757f338384e7ba44c906a69.zip
Move video form inside a component
Diffstat (limited to 'client/src/app/videos/+video-watch')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 3c6951403..87db023bf 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -11,12 +11,12 @@ import '../../../assets/player/peertube-videojs-plugin'
11import { AuthService, ConfirmService } from '../../core' 11import { AuthService, ConfirmService } from '../../core'
12import { VideoBlacklistService } from '../../shared' 12import { VideoBlacklistService } from '../../shared'
13import { Account } from '../../shared/account/account.model' 13import { Account } from '../../shared/account/account.model'
14import { VideoDetails } from '../../shared/video/video-details.model'
14import { Video } from '../../shared/video/video.model' 15import { Video } from '../../shared/video/video.model'
15import { MarkdownService } from '../shared' 16import { MarkdownService } from '../shared'
16import { VideoDownloadComponent } from './video-download.component' 17import { VideoDownloadComponent } from './video-download.component'
17import { VideoReportComponent } from './video-report.component' 18import { VideoReportComponent } from './video-report.component'
18import { VideoShareComponent } from './video-share.component' 19import { VideoShareComponent } from './video-share.component'
19import { VideoDetails } from '../../shared/video/video-details.model'
20 20
21@Component({ 21@Component({
22 selector: 'my-video-watch', 22 selector: 'my-video-watch',
@@ -199,14 +199,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
199 return this.authService.isLoggedIn() 199 return this.authService.isLoggedIn()
200 } 200 }
201 201
202 canUserUpdateVideo () {
203 return this.video.isUpdatableBy(this.authService.getUser())
204 }
205
206 isVideoRemovable () {
207 return this.video.isRemovableBy(this.authService.getUser())
208 }
209
210 isVideoBlacklistable () { 202 isVideoBlacklistable () {
211 return this.video.isBlackistableBy(this.authService.getUser()) 203 return this.video.isBlackistableBy(this.authService.getUser())
212 } 204 }