diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-01 16:52:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-01 16:52:59 +0200 |
commit | 45c6bcf312d2e9578501eaaf7511183bc570fe91 (patch) | |
tree | 6f526b1e132f532efa0916765222d260618f8095 /client/src/app/videos/+video-watch/modal/video-share.component.ts | |
parent | d96994289b24c4bbd056660c5fe11fff0f77635e (diff) | |
download | PeerTube-45c6bcf312d2e9578501eaaf7511183bc570fe91.tar.gz PeerTube-45c6bcf312d2e9578501eaaf7511183bc570fe91.tar.zst PeerTube-45c6bcf312d2e9578501eaaf7511183bc570fe91.zip |
Remove deprecated NgbTabsetModule module
Diffstat (limited to 'client/src/app/videos/+video-watch/modal/video-share.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-share.component.ts | 8 |
1 files changed, 2 insertions, 6 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 5109bcd11..56e7d70dd 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,7 +1,7 @@ | |||
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' | 2 | import { VideoDetails } from '../../../shared/video/video-details.model' |
3 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' | 3 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' |
4 | import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbModal, NgbNavChangeEvent, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap' |
5 | import { VideoCaption } from '@shared/models' | 5 | import { VideoCaption } from '@shared/models' |
6 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' | 6 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' |
7 | 7 | ||
@@ -35,7 +35,7 @@ export class VideoShareComponent { | |||
35 | @Input() videoCaptions: VideoCaption[] = [] | 35 | @Input() videoCaptions: VideoCaption[] = [] |
36 | @Input() playlist: VideoPlaylist = null | 36 | @Input() playlist: VideoPlaylist = null |
37 | 37 | ||
38 | activeId: 'url' | 'qrcode' | 'embed' | 38 | activeId: 'url' | 'qrcode' | 'embed' = 'url' |
39 | customizations: Customizations | 39 | customizations: Customizations |
40 | isAdvancedCustomizationCollapsed = true | 40 | isAdvancedCustomizationCollapsed = true |
41 | includeVideoInPlaylist = false | 41 | includeVideoInPlaylist = false |
@@ -101,10 +101,6 @@ export class VideoShareComponent { | |||
101 | return window.location.protocol === 'http:' | 101 | return window.location.protocol === 'http:' |
102 | } | 102 | } |
103 | 103 | ||
104 | onTabChange (event: NgbTabChangeEvent) { | ||
105 | this.activeId = event.nextId as any | ||
106 | } | ||
107 | |||
108 | isInEmbedTab () { | 104 | isInEmbedTab () { |
109 | return this.activeId === 'embed' | 105 | return this.activeId === 'embed' |
110 | } | 106 | } |