diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/app.module.ts | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 5a3b109da..6e74cd394 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -22,18 +22,6 @@ import { APP_BASE_HREF } from '@angular/common' | |||
22 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' | 22 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' |
23 | import { CustomModalComponent } from '@app/modal/custom-modal.component' | 23 | import { CustomModalComponent } from '@app/modal/custom-modal.component' |
24 | 24 | ||
25 | export function metaFactory (serverService: ServerService): MetaLoader { | ||
26 | return new MetaStaticLoader({ | ||
27 | pageTitlePositioning: PageTitlePositioning.PrependPageTitle, | ||
28 | pageTitleSeparator: ' - ', | ||
29 | get applicationName () { return serverService.getTmpConfig().instance.name }, | ||
30 | defaults: { | ||
31 | get title () { return serverService.getTmpConfig().instance.name }, | ||
32 | get description () { return serverService.getTmpConfig().instance.shortDescription } | ||
33 | } | ||
34 | }) | ||
35 | } | ||
36 | |||
37 | @NgModule({ | 25 | @NgModule({ |
38 | bootstrap: [ AppComponent ], | 26 | bootstrap: [ AppComponent ], |
39 | declarations: [ | 27 | declarations: [ |
@@ -67,7 +55,17 @@ export function metaFactory (serverService: ServerService): MetaLoader { | |||
67 | 55 | ||
68 | MetaModule.forRoot({ | 56 | MetaModule.forRoot({ |
69 | provide: MetaLoader, | 57 | provide: MetaLoader, |
70 | useFactory: (metaFactory), | 58 | useFactory: (serverService: ServerService) => { |
59 | return new MetaStaticLoader({ | ||
60 | pageTitlePositioning: PageTitlePositioning.PrependPageTitle, | ||
61 | pageTitleSeparator: ' - ', | ||
62 | get applicationName () { return serverService.getTmpConfig().instance.name }, | ||
63 | defaults: { | ||
64 | get title () { return serverService.getTmpConfig().instance.name }, | ||
65 | get description () { return serverService.getTmpConfig().instance.shortDescription } | ||
66 | } | ||
67 | }) | ||
68 | }, | ||
71 | deps: [ ServerService ] | 69 | deps: [ ServerService ] |
72 | }), | 70 | }), |
73 | 71 | ||