diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-07 11:15:19 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-07 11:15:19 +0100 |
commit | ff249f499ccca2e37757f338384e7ba44c906a69 (patch) | |
tree | cb8f88c105536e5edf4bf02030edecfe6b6c0d17 /client/src/app/videos/+video-watch/video-watch.component.ts | |
parent | 59aa1e5e7541f604363d2a1ebfd670a5d1db245f (diff) | |
download | PeerTube-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/video-watch.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 10 |
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' | |||
11 | import { AuthService, ConfirmService } from '../../core' | 11 | import { AuthService, ConfirmService } from '../../core' |
12 | import { VideoBlacklistService } from '../../shared' | 12 | import { VideoBlacklistService } from '../../shared' |
13 | import { Account } from '../../shared/account/account.model' | 13 | import { Account } from '../../shared/account/account.model' |
14 | import { VideoDetails } from '../../shared/video/video-details.model' | ||
14 | import { Video } from '../../shared/video/video.model' | 15 | import { Video } from '../../shared/video/video.model' |
15 | import { MarkdownService } from '../shared' | 16 | import { MarkdownService } from '../shared' |
16 | import { VideoDownloadComponent } from './video-download.component' | 17 | import { VideoDownloadComponent } from './video-download.component' |
17 | import { VideoReportComponent } from './video-report.component' | 18 | import { VideoReportComponent } from './video-report.component' |
18 | import { VideoShareComponent } from './video-share.component' | 19 | import { VideoShareComponent } from './video-share.component' |
19 | import { 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 | } |