diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-17 11:56:28 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-17 11:56:28 +0100 |
commit | 017fbe1855a9b3aea601595b10e62c681fbcdb17 (patch) | |
tree | 2f73f385535c3bb4d4582c018ca91a09e3bd9a49 /client/src/app | |
parent | ec10e8ed5b903b0a4d7af5c4a1f03c5f2e89c6b1 (diff) | |
download | PeerTube-017fbe1855a9b3aea601595b10e62c681fbcdb17.tar.gz PeerTube-017fbe1855a9b3aea601595b10e62c681fbcdb17.tar.zst PeerTube-017fbe1855a9b3aea601595b10e62c681fbcdb17.zip |
Fix instance get config
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/core/server/server.service.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index cdcbcb528..3997ce6db 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -159,8 +159,11 @@ export class ServerService { | |||
159 | if (!this.configObservable) { | 159 | if (!this.configObservable) { |
160 | this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL) | 160 | this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL) |
161 | .pipe( | 161 | .pipe( |
162 | tap(this.saveConfigLocally), | 162 | tap(config => this.saveConfigLocally(config)), |
163 | tap(() => this.configLoaded = true), | 163 | tap(config => { |
164 | this.config = config | ||
165 | this.configLoaded = true | ||
166 | }), | ||
164 | tap(() => { | 167 | tap(() => { |
165 | if (this.configReset) { | 168 | if (this.configReset) { |
166 | this.configReloaded.next() | 169 | this.configReloaded.next() |