diff options
Diffstat (limited to 'client/src/app/core/server/server.service.ts')
-rw-r--r-- | client/src/app/core/server/server.service.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index a71c6d0bf..c5353023b 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import { tap } from 'rxjs/operators' | ||
1 | import { HttpClient } from '@angular/common/http' | 2 | import { HttpClient } from '@angular/common/http' |
2 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
3 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage' | 4 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage' |
4 | import 'rxjs/add/operator/do' | 5 | import { ReplaySubject } from 'rxjs' |
5 | import { ReplaySubject } from 'rxjs/ReplaySubject' | ||
6 | import { ServerConfig } from '../../../../../shared' | 6 | import { ServerConfig } from '../../../../../shared' |
7 | import { About } from '../../../../../shared/models/server/about.model' | 7 | import { About } from '../../../../../shared/models/server/about.model' |
8 | import { environment } from '../../../environments/environment' | 8 | import { environment } from '../../../environments/environment' |
@@ -69,12 +69,12 @@ export class ServerService { | |||
69 | 69 | ||
70 | loadConfig () { | 70 | loadConfig () { |
71 | this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL) | 71 | this.http.get<ServerConfig>(ServerService.BASE_CONFIG_URL) |
72 | .do(this.saveConfigLocally) | 72 | .pipe(tap(this.saveConfigLocally)) |
73 | .subscribe(data => { | 73 | .subscribe(data => { |
74 | this.config = data | 74 | this.config = data |
75 | 75 | ||
76 | this.configLoaded.next(true) | 76 | this.configLoaded.next(true) |
77 | }) | 77 | }) |
78 | } | 78 | } |
79 | 79 | ||
80 | loadVideoCategories () { | 80 | loadVideoCategories () { |