]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/server/server.service.ts
Normalize modal close buttons, and cancel/submit button styles
[github/Chocobozzz/PeerTube.git] / client / src / app / core / server / server.service.ts
index c0e1f08bb1d0ef6c71dcd2edfd5cc1708d03c960..e015d0e1430d9e7f9727dd5c70f595804602e1f9 100644 (file)
@@ -168,8 +168,11 @@ export class ServerService {
     if (!this.configObservable) {
       this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL)
                                   .pipe(
-                                    tap(this.saveConfigLocally),
-                                    tap(() => this.configLoaded = true),
+                                    tap(config => this.saveConfigLocally(config)),
+                                    tap(config => {
+                                      this.config = config
+                                      this.configLoaded = true
+                                    }),
                                     tap(() => {
                                       if (this.configReset) {
                                         this.configReloaded.next()