diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/videos/+video-watch/modal | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/videos/+video-watch/modal')
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-share.component.ts | 8 | ||||
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-support.component.ts | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts index 3550556a0..b42b775c1 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ElementRef, Input, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, Input, ViewChild } from '@angular/core' |
2 | import { VideoDetails } from '../../../shared/video/video-details.model' | ||
3 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' | 2 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' |
4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
5 | import { VideoCaption } from '@shared/models' | 4 | import { VideoCaption } from '@shared/models' |
6 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' | 5 | import { VideoDetails } from '@app/shared/shared-main' |
6 | import { VideoPlaylist } from '@app/shared/shared-video-playlist' | ||
7 | 7 | ||
8 | type Customizations = { | 8 | type Customizations = { |
9 | startAtCheckbox: boolean | 9 | startAtCheckbox: boolean |
@@ -40,13 +40,9 @@ export class VideoShareComponent { | |||
40 | isAdvancedCustomizationCollapsed = true | 40 | isAdvancedCustomizationCollapsed = true |
41 | includeVideoInPlaylist = false | 41 | includeVideoInPlaylist = false |
42 | 42 | ||
43 | private currentVideoTimestamp: number | ||
44 | |||
45 | constructor (private modalService: NgbModal) { } | 43 | constructor (private modalService: NgbModal) { } |
46 | 44 | ||
47 | show (currentVideoTimestamp?: number) { | 45 | show (currentVideoTimestamp?: number) { |
48 | this.currentVideoTimestamp = currentVideoTimestamp | ||
49 | |||
50 | let subtitle: string | 46 | let subtitle: string |
51 | if (this.videoCaptions.length !== 0) { | 47 | if (this.videoCaptions.length !== 0) { |
52 | subtitle = this.videoCaptions[0].language.id | 48 | subtitle = this.videoCaptions[0].language.id |
diff --git a/client/src/app/videos/+video-watch/modal/video-support.component.ts b/client/src/app/videos/+video-watch/modal/video-support.component.ts index 0058172f2..48d5f2948 100644 --- a/client/src/app/videos/+video-watch/modal/video-support.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-support.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, Input, ViewChild } from '@angular/core' | 1 | import { Component, Input, ViewChild } from '@angular/core' |
2 | import { VideoDetails } from '../../../shared/video/video-details.model' | 2 | import { MarkdownService } from '@app/core' |
3 | import { VideoDetails } from '@app/shared/shared-main' | ||
3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
4 | import { MarkdownService } from '@app/shared/renderer' | ||
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | selector: 'my-video-support', | 7 | selector: 'my-video-support', |