mirror of https://github.com/Chocobozzz/PeerTube
Fix instance get config
parent
ec10e8ed5b
commit
017fbe1855
|
@ -159,8 +159,11 @@ export class ServerService {
|
||||||
if (!this.configObservable) {
|
if (!this.configObservable) {
|
||||||
this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL)
|
this.configObservable = this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL)
|
||||||
.pipe(
|
.pipe(
|
||||||
tap(this.saveConfigLocally),
|
tap(config => this.saveConfigLocally(config)),
|
||||||
tap(() => this.configLoaded = true),
|
tap(config => {
|
||||||
|
this.config = config
|
||||||
|
this.configLoaded = true
|
||||||
|
}),
|
||||||
tap(() => {
|
tap(() => {
|
||||||
if (this.configReset) {
|
if (this.configReset) {
|
||||||
this.configReloaded.next()
|
this.configReloaded.next()
|
||||||
|
|
Loading…
Reference in New Issue