diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-03 10:07:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-03 10:08:50 +0100 |
commit | c469c05b0f19c8ba6a7383ed89ce30b577146ebe (patch) | |
tree | 4c624c7a2c128cf6bdd2b6be6f8c7989dd7bb359 /client/src | |
parent | fb2d44087686eca992d15c7a0f6e69361475c669 (diff) | |
download | PeerTube-c469c05b0f19c8ba6a7383ed89ce30b577146ebe.tar.gz PeerTube-c469c05b0f19c8ba6a7383ed89ce30b577146ebe.tar.zst PeerTube-c469c05b0f19c8ba6a7383ed89ce30b577146ebe.zip |
Hide warning if p2p is disabled
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 3 |
1 files changed, 2 insertions, 1 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 9973fad0d..e09e44809 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -32,7 +32,7 @@ import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist. | |||
32 | import { Video } from '@app/shared/video/video.model' | 32 | import { Video } from '@app/shared/video/video.model' |
33 | import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' | 33 | import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' |
34 | import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' | 34 | import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' |
35 | import { getStoredTheater } from '../../../assets/player/peertube-player-local-storage' | 35 | import { getStoredP2PEnabled, getStoredTheater } from '../../../assets/player/peertube-player-local-storage' |
36 | import { HooksService } from '@app/core/plugins/hooks.service' | 36 | import { HooksService } from '@app/core/plugins/hooks.service' |
37 | import { PlatformLocation } from '@angular/common' | 37 | import { PlatformLocation } from '@angular/common' |
38 | import { RecommendedVideosComponent } from '../recommendations/recommended-videos.component' | 38 | import { RecommendedVideosComponent } from '../recommendations/recommended-videos.component' |
@@ -128,6 +128,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
128 | if ( | 128 | if ( |
129 | isWebRTCDisabled() || | 129 | isWebRTCDisabled() || |
130 | this.serverConfig.tracker.enabled === false || | 130 | this.serverConfig.tracker.enabled === false || |
131 | getStoredP2PEnabled() === false || | ||
131 | peertubeLocalStorage.getItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY) === 'true' | 132 | peertubeLocalStorage.getItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY) === 'true' |
132 | ) { | 133 | ) { |
133 | this.hasAlreadyAcceptedPrivacyConcern = true | 134 | this.hasAlreadyAcceptedPrivacyConcern = true |