aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-03 10:07:41 +0100
committerChocobozzz <me@florianbigard.com>2020-01-03 10:08:50 +0100
commitc469c05b0f19c8ba6a7383ed89ce30b577146ebe (patch)
tree4c624c7a2c128cf6bdd2b6be6f8c7989dd7bb359 /client/src
parentfb2d44087686eca992d15c7a0f6e69361475c669 (diff)
downloadPeerTube-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.ts3
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.
32import { Video } from '@app/shared/video/video.model' 32import { Video } from '@app/shared/video/video.model'
33import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' 33import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils'
34import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' 34import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component'
35import { getStoredTheater } from '../../../assets/player/peertube-player-local-storage' 35import { getStoredP2PEnabled, getStoredTheater } from '../../../assets/player/peertube-player-local-storage'
36import { HooksService } from '@app/core/plugins/hooks.service' 36import { HooksService } from '@app/core/plugins/hooks.service'
37import { PlatformLocation } from '@angular/common' 37import { PlatformLocation } from '@angular/common'
38import { RecommendedVideosComponent } from '../recommendations/recommended-videos.component' 38import { 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