From 9b9b1805c287b00c7ab7bdc2f7ebddf0b9f03573 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 May 2018 15:37:52 +0200 Subject: User routes: :id/update -> update/:id --- client/src/app/+admin/users/user-list/user-list.component.ts | 2 +- client/src/app/+admin/users/users.routes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/+admin') diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts index a52df49c0..2cc4d4349 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/users/user-list/user-list.component.ts @@ -51,7 +51,7 @@ export class UserListComponent extends RestTable implements OnInit { } getRouterUserEditLink (user: User) { - return [ '/admin', 'users', user.id, 'update' ] + return [ '/admin', 'users', 'update', user.id ] } protected loadData () { diff --git a/client/src/app/+admin/users/users.routes.ts b/client/src/app/+admin/users/users.routes.ts index 7585eb852..8b3791bd3 100644 --- a/client/src/app/+admin/users/users.routes.ts +++ b/client/src/app/+admin/users/users.routes.ts @@ -39,7 +39,7 @@ export const UsersRoutes: Routes = [ } }, { - path: ':id/update', + path: 'update/:id', component: UserUpdateComponent, data: { meta: { -- cgit v1.2.3