1
0
Fork 0

Fix theme update when logged in

This commit is contained in:
Chocobozzz 2021-12-09 13:38:53 +01:00
parent 7e44bd4a6f
commit 4b57ebdfe6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 11 additions and 12 deletions

View File

@ -20,6 +20,16 @@
</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 -->
@ -42,16 +52,6 @@
</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>

View File

@ -141,7 +141,6 @@ export class ThemeService {
}
this.auth.userInformationLoaded
.pipe(first())
.subscribe(() => this.updateCurrentTheme())
}

View 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())
}
})
}