diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-21 16:18:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (patch) | |
tree | 93c53e0619f966bd9ff1bb698c411277a9447a41 /client/src/app/shared/video/video-details.model.ts | |
parent | 99492dbc0d87ef54d0dab7d8d44f8d0de5722bdd (diff) | |
download | PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.gz PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.zst PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.zip |
Add local user subscriptions
Diffstat (limited to 'client/src/app/shared/video/video-details.model.ts')
-rw-r--r-- | client/src/app/shared/video/video-details.model.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts index d346f985c..fa4ca7f93 100644 --- a/client/src/app/shared/video/video-details.model.ts +++ b/client/src/app/shared/video/video-details.model.ts | |||
@@ -1,14 +1,8 @@ | |||
1 | import { | 1 | import { UserRight, VideoConstant, VideoDetails as VideoDetailsServerModel, VideoFile, VideoState } from '../../../../../shared' |
2 | UserRight, | ||
3 | VideoChannel, | ||
4 | VideoConstant, | ||
5 | VideoDetails as VideoDetailsServerModel, | ||
6 | VideoFile, | ||
7 | VideoState | ||
8 | } from '../../../../../shared' | ||
9 | import { AuthUser } from '../../core' | 2 | import { AuthUser } from '../../core' |
10 | import { Video } from '../../shared/video/video.model' | 3 | import { Video } from '../../shared/video/video.model' |
11 | import { Account } from '@app/shared/account/account.model' | 4 | import { Account } from '@app/shared/account/account.model' |
5 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | ||
12 | 6 | ||
13 | export class VideoDetails extends Video implements VideoDetailsServerModel { | 7 | export class VideoDetails extends Video implements VideoDetailsServerModel { |
14 | descriptionPath: string | 8 | descriptionPath: string |
@@ -30,7 +24,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { | |||
30 | 24 | ||
31 | this.descriptionPath = hash.descriptionPath | 25 | this.descriptionPath = hash.descriptionPath |
32 | this.files = hash.files | 26 | this.files = hash.files |
33 | this.channel = hash.channel | 27 | this.channel = new VideoChannel(hash.channel) |
34 | this.account = new Account(hash.account) | 28 | this.account = new Account(hash.account) |
35 | this.tags = hash.tags | 29 | this.tags = hash.tags |
36 | this.support = hash.support | 30 | this.support = hash.support |