]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix theme update when logged in
authorChocobozzz <me@florianbigard.com>
Thu, 9 Dec 2021 12:38:53 +0000 (13:38 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 9 Dec 2021 12:38:53 +0000 (13:38 +0100)
client/src/app/+my-account/my-account-settings/my-account-settings.component.html
client/src/app/core/theme/theme.service.ts
client/src/app/shared/shared-user-settings/user-interface-settings.component.ts

index 48d06280b5e27b38098176c9975a04b069b25082..8ca197fd48449a13d0d0982be1bb665dd28f93dd 100644 (file)
   </div>
 </div>
 
+<div class="form-row mt-5"> <!-- interface grid -->
+  <div class="form-group col-12 col-lg-4 col-xl-3">
+    <h2 i18n class="account-title">INTERFACE</h2>
+  </div>
+
+  <div class="form-group col-12 col-lg-8 col-xl-9">
+    <my-user-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-interface-settings>
+  </div>
+</div>
+
 <div class="form-row mt-5"> <!-- video settings grid -->
   <div class="form-group col-12 col-lg-4 col-xl-3">
     <div class="anchor" id="video-settings"></div> <!-- video settings anchor -->
   </div>
 </div>
 
-<div class="form-row mt-5"> <!-- interface grid -->
-  <div class="form-group col-12 col-lg-4 col-xl-3">
-    <h2 i18n class="account-title">INTERFACE</h2>
-  </div>
-
-  <div class="form-group col-12 col-lg-8 col-xl-9">
-    <my-user-interface-settings [user]="user" [userInformationLoaded]="userInformationLoaded"></my-user-interface-settings>
-  </div>
-</div>
-
 <div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid -->
   <div class="form-group col-12 col-lg-4 col-xl-3">
     <h2 i18n class="account-title">PASSWORD</h2>
index c9e6fa7005475ca85b5e4e6812b80d32224372d6..ac34689419df7a271cb7edc05ace477904083e85 100644 (file)
@@ -141,7 +141,6 @@ export class ThemeService {
     }
 
     this.auth.userInformationLoaded
-      .pipe(first())
       .subscribe(() => this.updateCurrentTheme())
   }
 
index bd1cb0353b8c1e291778e522912c8b6fe08a0103..d04a2c3488cd4ecf84afa33dc8ce1f14ccdb725a 100644 (file)
@@ -48,7 +48,7 @@ export class UserInterfaceSettingsComponent extends FormReactive implements OnIn
         })
 
         if (this.reactiveUpdate) {
-          this.formValuesWatcher = this.form.valueChanges.subscribe(val => this.updateInterfaceSettings())
+          this.formValuesWatcher = this.form.valueChanges.subscribe(() => this.updateInterfaceSettings())
         }
       })
   }