aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-05-11 13:39:06 +0200
committerChocobozzz <me@florianbigard.com>2020-05-11 13:39:06 +0200
commit399b3bc9a638482e93de27a99a372b45fc3ece43 (patch)
tree51a4c46e99efb91d4258500b87bc5c57546b4cff /client/src/app
parentbed0fe9c5ae868849c239405bb62c028df4a9ffb (diff)
downloadPeerTube-399b3bc9a638482e93de27a99a372b45fc3ece43.tar.gz
PeerTube-399b3bc9a638482e93de27a99a372b45fc3ece43.tar.zst
PeerTube-399b3bc9a638482e93de27a99a372b45fc3ece43.zip
Update translations
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/app.module.ts24
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'
22import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' 22import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component'
23import { CustomModalComponent } from '@app/modal/custom-modal.component' 23import { CustomModalComponent } from '@app/modal/custom-modal.component'
24 24
25export 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