From 4c200caae63b3f5602dcd93e94b52c39e01857fe Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 May 2018 15:30:37 +0200 Subject: [PATCH] User add -> User create --- client/src/app/+admin/admin.module.ts | 4 ++-- client/src/app/+admin/users/user-edit/index.ts | 2 +- .../{user-add.component.ts => user-create.component.ts} | 6 +++--- .../app/+admin/users/user-edit/user-edit.component.html | 2 +- .../app/+admin/users/user-list/user-list.component.html | 4 ++-- client/src/app/+admin/users/users.routes.ts | 8 ++++---- 6 files changed, 13 insertions(+), 13 deletions(-) rename client/src/app/+admin/users/user-edit/{user-add.component.ts => user-create.component.ts} (94%) diff --git a/client/src/app/+admin/admin.module.ts b/client/src/app/+admin/admin.module.ts index b389f3d4f..8d50b8715 100644 --- a/client/src/app/+admin/admin.module.ts +++ b/client/src/app/+admin/admin.module.ts @@ -11,7 +11,7 @@ import { FollowingListComponent } from './follows/following-list/following-list. import { JobsComponent } from './jobs/job.component' import { JobsListComponent } from './jobs/jobs-list/jobs-list.component' import { JobService } from './jobs/shared/job.service' -import { UserAddComponent, UserListComponent, UsersComponent, UserService, UserUpdateComponent } from './users' +import { UserCreateComponent, UserListComponent, UsersComponent, UserService, UserUpdateComponent } from './users' import { VideoAbuseListComponent, VideoAbusesComponent } from './video-abuses' import { VideoBlacklistComponent, VideoBlacklistListComponent } from './video-blacklist' @@ -32,7 +32,7 @@ import { VideoBlacklistComponent, VideoBlacklistListComponent } from './video-bl FollowingListComponent, UsersComponent, - UserAddComponent, + UserCreateComponent, UserUpdateComponent, UserListComponent, diff --git a/client/src/app/+admin/users/user-edit/index.ts b/client/src/app/+admin/users/user-edit/index.ts index edec02fbb..fd80a02e0 100644 --- a/client/src/app/+admin/users/user-edit/index.ts +++ b/client/src/app/+admin/users/user-edit/index.ts @@ -1,2 +1,2 @@ -export * from './user-add.component' +export * from './user-create.component' export * from './user-update.component' diff --git a/client/src/app/+admin/users/user-edit/user-add.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts similarity index 94% rename from client/src/app/+admin/users/user-edit/user-add.component.ts rename to client/src/app/+admin/users/user-edit/user-create.component.ts index 64cee43be..2a9882cde 100644 --- a/client/src/app/+admin/users/user-edit/user-add.component.ts +++ b/client/src/app/+admin/users/user-edit/user-create.component.ts @@ -17,11 +17,11 @@ import { UserCreate, UserRole } from '../../../../../../shared' import { UserEdit } from './user-edit' @Component({ - selector: 'my-user-add', + selector: 'my-user-create', templateUrl: './user-edit.component.html', styleUrls: [ './user-edit.component.scss' ] }) -export class UserAddComponent extends UserEdit implements OnInit { +export class UserCreateComponent extends UserEdit implements OnInit { error: string form: FormGroup @@ -89,6 +89,6 @@ export class UserAddComponent extends UserEdit implements OnInit { } getFormButtonTitle () { - return 'Add user' + return 'Create user' } } diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index 6dee0b7aa..a8c0ddadb 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html @@ -1,4 +1,4 @@ -
Add user
+
Create user
Edit user {{ username }}
{{ error }}
diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html index 83db034e3..09a4ac1e7 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.html +++ b/client/src/app/+admin/users/user-list/user-list.component.html @@ -1,9 +1,9 @@
Users list
- + - Add user + Create user
diff --git a/client/src/app/+admin/users/users.routes.ts b/client/src/app/+admin/users/users.routes.ts index 3718dfd5c..7585eb852 100644 --- a/client/src/app/+admin/users/users.routes.ts +++ b/client/src/app/+admin/users/users.routes.ts @@ -3,7 +3,7 @@ import { Routes } from '@angular/router' import { UserRightGuard } from '../../core' import { UserRight } from '../../../../../shared' import { UsersComponent } from './users.component' -import { UserAddComponent, UserUpdateComponent } from './user-edit' +import { UserCreateComponent, UserUpdateComponent } from './user-edit' import { UserListComponent } from './user-list' export const UsersRoutes: Routes = [ @@ -30,11 +30,11 @@ export const UsersRoutes: Routes = [ } }, { - path: 'add', - component: UserAddComponent, + path: 'create', + component: UserCreateComponent, data: { meta: { - title: 'Add a user' + title: 'Create a user' } } }, -- 2.25.1