aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-09 13:38:53 +0100
committerChocobozzz <me@florianbigard.com>2021-12-09 13:38:53 +0100
commit4b57ebdfe69e862373908590b0cf781ab0d71a02 (patch)
tree38d766d98ad5b18515ea775d88490efdc1ea566d /client
parent7e44bd4a6f39373ef1751d4d19cdcf7de65bdcf9 (diff)
downloadPeerTube-4b57ebdfe69e862373908590b0cf781ab0d71a02.tar.gz
PeerTube-4b57ebdfe69e862373908590b0cf781ab0d71a02.tar.zst
PeerTube-4b57ebdfe69e862373908590b0cf781ab0d71a02.zip
Fix theme update when logged in
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.html20
-rw-r--r--client/src/app/core/theme/theme.service.ts1
-rw-r--r--client/src/app/shared/shared-user-settings/user-interface-settings.component.ts2
3 files changed, 11 insertions, 12 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
index 48d06280b..8ca197fd4 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
@@ -20,6 +20,16 @@
20 </div> 20 </div>
21</div> 21</div>
22 22
23<div class="form-row mt-5"> <!-- interface grid -->
24 <div class="form-group col-12 col-lg-4 col-xl-3">
25 <h2 i18n class="account-title">INTERFACE</h2>
26 </div>
27
28 <div class="form-group col-12 col-lg-8 col-xl-9">
29 <my-user-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-interface-settings>
30 </div>
31</div>
32
23<div class="form-row mt-5"> <!-- video settings grid --> 33<div class="form-row mt-5"> <!-- video settings grid -->
24 <div class="form-group col-12 col-lg-4 col-xl-3"> 34 <div class="form-group col-12 col-lg-4 col-xl-3">
25 <div class="anchor" id="video-settings"></div> <!-- video settings anchor --> 35 <div class="anchor" id="video-settings"></div> <!-- video settings anchor -->
@@ -42,16 +52,6 @@
42 </div> 52 </div>
43</div> 53</div>
44 54
45<div class="form-row mt-5"> <!-- interface grid -->
46 <div class="form-group col-12 col-lg-4 col-xl-3">
47 <h2 i18n class="account-title">INTERFACE</h2>
48 </div>
49
50 <div class="form-group col-12 col-lg-8 col-xl-9">
51 <my-user-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-interface-settings>
52 </div>
53</div>
54
55<div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid --> 55<div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid -->
56 <div class="form-group col-12 col-lg-4 col-xl-3"> 56 <div class="form-group col-12 col-lg-4 col-xl-3">
57 <h2 i18n class="account-title">PASSWORD</h2> 57 <h2 i18n class="account-title">PASSWORD</h2>
diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.ts
index c9e6fa700..ac3468941 100644
--- a/client/src/app/core/theme/theme.service.ts
+++ b/client/src/app/core/theme/theme.service.ts
@@ -141,7 +141,6 @@ export class ThemeService {
141 } 141 }
142 142
143 this.auth.userInformationLoaded 143 this.auth.userInformationLoaded
144 .pipe(first())
145 .subscribe(() => this.updateCurrentTheme()) 144 .subscribe(() => this.updateCurrentTheme())
146 } 145 }
147 146
diff --git a/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts b/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts
index bd1cb0353..d04a2c348 100644
--- a/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts
+++ b/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts
@@ -48,7 +48,7 @@ export class UserInterfaceSettingsComponent extends FormReactive implements OnIn
48 }) 48 })
49 49
50 if (this.reactiveUpdate) { 50 if (this.reactiveUpdate) {
51 this.formValuesWatcher = this.form.valueChanges.subscribe(val => this.updateInterfaceSettings()) 51 this.formValuesWatcher = this.form.valueChanges.subscribe(() => this.updateInterfaceSettings())
52 } 52 }
53 }) 53 })
54 } 54 }