import { Component, OnInit } from '@angular/core'
import { AuthService, AuthUser, ScreenService, ServerService } from '@app/core'
-import { ServerConfig } from '@shared/models'
+import { HTMLServerConfig } from '@shared/models'
import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component'
@Component({
menuEntries: TopMenuDropdownParam[] = []
user: AuthUser
- private serverConfig: ServerConfig
+ private serverConfig: HTMLServerConfig
constructor (
private serverService: ServerService,
private authService: AuthService,
private screenService: ScreenService
- ) { }
+ ) { }
get isBroadcastMessageDisplayed () {
return this.screenService.isBroadcastMessageDisplayed
}
ngOnInit (): void {
- this.serverConfig = this.serverService.getTmpConfig()
- this.serverService.getConfig()
- .subscribe(config => this.serverConfig = config)
+ this.serverConfig = this.serverService.getHTMLConfig()
this.user = this.authService.getUser()
},
{
- label: $localize`Subscriptions`,
- routerLink: '/my-library/subscriptions'
+ label: $localize`Follows`,
+ children: [
+ {
+ label: $localize`Subscriptions`,
+ iconName: 'subscriptions',
+ routerLink: '/my-library/subscriptions'
+ },
+ {
+ label: $localize`Followers`,
+ iconName: 'follower',
+ routerLink: '/my-library/followers'
+ }
+ ]
},
{