aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-23 15:24:58 +0100
committerChocobozzz <me@florianbigard.com>2023-01-23 15:24:58 +0100
commitb1d8261c458f5c9a800539d0aebc749e53dfcdbe (patch)
treed4989337cc1082e1661c8c8e1ac21899f78afcc4 /client/src/app
parent823e411fa6e2d66258fb7bc9e617a0822190273f (diff)
downloadPeerTube-b1d8261c458f5c9a800539d0aebc749e53dfcdbe.tar.gz
PeerTube-b1d8261c458f5c9a800539d0aebc749e53dfcdbe.tar.zst
PeerTube-b1d8261c458f5c9a800539d0aebc749e53dfcdbe.zip
Fix auto play setting for anonymous users
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/core/users/user-local-storage.service.ts3
-rw-r--r--client/src/app/shared/shared-user-settings/user-video-settings.component.ts5
2 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/core/users/user-local-storage.service.ts b/client/src/app/core/users/user-local-storage.service.ts
index a047efe8e..d5fd1e447 100644
--- a/client/src/app/core/users/user-local-storage.service.ts
+++ b/client/src/app/core/users/user-local-storage.service.ts
@@ -125,7 +125,8 @@ export class UserLocalStorageService {
125 const localStorageKeys: { [ id in keyof UserUpdateMe ]: string } = { 125 const localStorageKeys: { [ id in keyof UserUpdateMe ]: string } = {
126 nsfwPolicy: UserLocalStorageKeys.NSFW_POLICY, 126 nsfwPolicy: UserLocalStorageKeys.NSFW_POLICY,
127 p2pEnabled: UserLocalStorageKeys.P2P_ENABLED, 127 p2pEnabled: UserLocalStorageKeys.P2P_ENABLED,
128 autoPlayNextVideo: UserLocalStorageKeys.AUTO_PLAY_VIDEO, 128 autoPlayVideo: UserLocalStorageKeys.AUTO_PLAY_VIDEO,
129 autoPlayNextVideo: UserLocalStorageKeys.AUTO_PLAY_NEXT_VIDEO,
129 autoPlayNextVideoPlaylist: UserLocalStorageKeys.AUTO_PLAY_VIDEO_PLAYLIST, 130 autoPlayNextVideoPlaylist: UserLocalStorageKeys.AUTO_PLAY_VIDEO_PLAYLIST,
130 theme: UserLocalStorageKeys.THEME, 131 theme: UserLocalStorageKeys.THEME,
131 videoLanguages: UserLocalStorageKeys.VIDEO_LANGUAGES 132 videoLanguages: UserLocalStorageKeys.VIDEO_LANGUAGES
diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.ts b/client/src/app/shared/shared-user-settings/user-video-settings.component.ts
index af0870f12..ed6e7fffd 100644
--- a/client/src/app/shared/shared-user-settings/user-video-settings.component.ts
+++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.ts
@@ -127,6 +127,9 @@ export class UserVideoSettingsComponent extends FormReactive implements OnInit,
127 127
128 private updateAnonymousProfile (details: UserUpdateMe) { 128 private updateAnonymousProfile (details: UserUpdateMe) {
129 this.userService.updateMyAnonymousProfile(details) 129 this.userService.updateMyAnonymousProfile(details)
130 if (this.notifyOnUpdate) this.notifier.success($localize`Display/Video settings updated.`) 130
131 if (this.notifyOnUpdate) {
132 this.notifier.success($localize`Display/Video settings updated.`)
133 }
131 } 134 }
132} 135}