aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.module.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-04 17:25:26 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-04 17:25:26 +0100
commitb58c69a1edcf63b6339576b5b431dbf7dea2c625 (patch)
tree98f4fb17351db9bd737aabfe56c1ddbcf8b29ad3 /client/src/app/app.module.ts
parent3154f38219ea6eb55532f38fee43d46821a020ee (diff)
downloadPeerTube-b58c69a1edcf63b6339576b5b431dbf7dea2c625.tar.gz
PeerTube-b58c69a1edcf63b6339576b5b431dbf7dea2c625.tar.zst
PeerTube-b58c69a1edcf63b6339576b5b431dbf7dea2c625.zip
Client: add titles to all pages
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r--client/src/app/app.module.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
index 939af6309..e40b66c5f 100644
--- a/client/src/app/app.module.ts
+++ b/client/src/app/app.module.ts
@@ -6,12 +6,16 @@ import { RouterModule } from '@angular/router';
6import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; 6import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
7 7
8import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; 8import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
9
9import { DropdownModule } from 'ng2-bootstrap/components/dropdown'; 10import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
10import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; 11import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
11import { PaginationModule } from 'ng2-bootstrap/components/pagination'; 12import { PaginationModule } from 'ng2-bootstrap/components/pagination';
12import { ModalModule } from 'ng2-bootstrap/components/modal'; 13import { ModalModule } from 'ng2-bootstrap/components/modal';
14
13import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; 15import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
14 16
17import { MetaConfig, MetaModule } from 'ng2-meta';
18
15/* 19/*
16 * Platform and Environment providers/directives/pipes 20 * Platform and Environment providers/directives/pipes
17 */ 21 */
@@ -52,6 +56,15 @@ import {
52 WebTorrentService 56 WebTorrentService
53} from './videos'; 57} from './videos';
54 58
59const metaConfig: MetaConfig = {
60 //Append a title suffix such as a site name to all titles
61 //Defaults to false
62 useTitleSuffix: true,
63 defaults: {
64 title: 'PeerTube'
65 }
66};
67
55// Application wide providers 68// Application wide providers
56const APP_PROVIDERS = [ 69const APP_PROVIDERS = [
57 AppState, 70 AppState,
@@ -117,7 +130,10 @@ const APP_PROVIDERS = [
117 ProgressbarModule, 130 ProgressbarModule,
118 PaginationModule, 131 PaginationModule,
119 ModalModule, 132 ModalModule,
120 FileUploadModule 133
134 FileUploadModule,
135
136 MetaModule.forRoot(metaConfig)
121 ], 137 ],
122 providers: [ // expose our Services and Providers into Angular's dependency injection 138 providers: [ // expose our Services and Providers into Angular's dependency injection
123 ENV_PROVIDERS, 139 ENV_PROVIDERS,