From b58c69a1edcf63b6339576b5b431dbf7dea2c625 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Nov 2016 17:25:26 +0100 Subject: Client: add titles to all pages --- client/src/app/admin/friends/friends.routes.ts | 14 ++++++++++++-- client/src/app/admin/requests/requests.routes.ts | 7 ++++++- client/src/app/admin/users/users.routes.ts | 14 ++++++++++++-- 3 files changed, 30 insertions(+), 5 deletions(-) (limited to 'client/src/app/admin') diff --git a/client/src/app/admin/friends/friends.routes.ts b/client/src/app/admin/friends/friends.routes.ts index 7fdef68f9..a9a06539b 100644 --- a/client/src/app/admin/friends/friends.routes.ts +++ b/client/src/app/admin/friends/friends.routes.ts @@ -16,11 +16,21 @@ export const FriendsRoutes: Routes = [ }, { path: 'list', - component: FriendListComponent + component: FriendListComponent, + data: { + meta: { + titleSuffix: ' - Friends list' + } + } }, { path: 'add', - component: FriendAddComponent + component: FriendAddComponent, + data: { + meta: { + titleSuffix: ' - Add friends' + } + } } ] } diff --git a/client/src/app/admin/requests/requests.routes.ts b/client/src/app/admin/requests/requests.routes.ts index 78221a9ff..70fbf41c3 100644 --- a/client/src/app/admin/requests/requests.routes.ts +++ b/client/src/app/admin/requests/requests.routes.ts @@ -15,7 +15,12 @@ export const RequestsRoutes: Routes = [ }, { path: 'stats', - component: RequestStatsComponent + component: RequestStatsComponent, + data: { + meta: { + titleSuffix: ' - Request stats' + } + } } ] } diff --git a/client/src/app/admin/users/users.routes.ts b/client/src/app/admin/users/users.routes.ts index eb71bd0ae..92e3e43e3 100644 --- a/client/src/app/admin/users/users.routes.ts +++ b/client/src/app/admin/users/users.routes.ts @@ -16,11 +16,21 @@ export const UsersRoutes: Routes = [ }, { path: 'list', - component: UserListComponent + component: UserListComponent, + data: { + meta: { + titleSuffix: ' - Users list' + } + } }, { path: 'add', - component: UserAddComponent + component: UserAddComponent, + data: { + meta: { + titleSuffix: ' - Add a user' + } + } } ] } -- cgit v1.2.3