aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-library.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-04 13:31:41 +0200
committerChocobozzz <me@florianbigard.com>2021-06-04 15:45:44 +0200
commit2989628b7913383b39ac34c7db8666a21f8e5037 (patch)
treeac7759177c04e524e7845143fd685aefb49e810e /client/src/app/+my-library/my-library.component.ts
parent8e08d415f9473b6b72fef698729453e726da16e7 (diff)
downloadPeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.gz
PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.zst
PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.zip
Use HTML config when possible
Diffstat (limited to 'client/src/app/+my-library/my-library.component.ts')
-rw-r--r--client/src/app/+my-library/my-library.component.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/src/app/+my-library/my-library.component.ts b/client/src/app/+my-library/my-library.component.ts
index 0cc91e484..939aa84c8 100644
--- a/client/src/app/+my-library/my-library.component.ts
+++ b/client/src/app/+my-library/my-library.component.ts
@@ -1,6 +1,6 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { AuthService, AuthUser, ScreenService, ServerService } from '@app/core' 2import { AuthService, AuthUser, ScreenService, ServerService } from '@app/core'
3import { ServerConfig } from '@shared/models' 3import { HTMLServerConfig } from '@shared/models'
4import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component' 4import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component'
5 5
6@Component({ 6@Component({
@@ -11,7 +11,8 @@ export class MyLibraryComponent implements OnInit {
11 menuEntries: TopMenuDropdownParam[] = [] 11 menuEntries: TopMenuDropdownParam[] = []
12 user: AuthUser 12 user: AuthUser
13 13
14 private serverConfig: ServerConfig 14
15 private serverConfig: HTMLServerConfig
15 16
16 constructor ( 17 constructor (
17 private serverService: ServerService, 18 private serverService: ServerService,
@@ -24,9 +25,7 @@ export class MyLibraryComponent implements OnInit {
24 } 25 }
25 26
26 ngOnInit (): void { 27 ngOnInit (): void {
27 this.serverConfig = this.serverService.getTmpConfig() 28 this.serverConfig = this.serverService.getHTMLConfig()
28 this.serverService.getConfig()
29 .subscribe(config => this.serverConfig = config)
30 29
31 this.user = this.authService.getUser() 30 this.user = this.authService.getUser()
32 31