diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-20 16:24:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 16:24:31 +0200 |
commit | 0491173a61aed66205c017e0d7e0503ea316c144 (patch) | |
tree | ce6621597505f9518cfdf0981977d097c63f9fad /client/src/app/+admin | |
parent | 8704acf49efc770d73bf07c10468ed8c74d28a83 (diff) | |
parent | 6247b2057b792cea155a1abd9788c363ae7d2cc2 (diff) | |
download | PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.gz PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.zst PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.zip |
Merge branch 'develop' into cli-wrapper
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/moderation/moderation.routes.ts | 10 | ||||
-rw-r--r-- | client/src/app/+admin/users/user-list/user-list.component.ts | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/client/src/app/+admin/moderation/moderation.routes.ts b/client/src/app/+admin/moderation/moderation.routes.ts index b133152d9..6d81b9b36 100644 --- a/client/src/app/+admin/moderation/moderation.routes.ts +++ b/client/src/app/+admin/moderation/moderation.routes.ts | |||
@@ -16,6 +16,16 @@ export const ModerationRoutes: Routes = [ | |||
16 | pathMatch: 'full' | 16 | pathMatch: 'full' |
17 | }, | 17 | }, |
18 | { | 18 | { |
19 | path: 'video-abuses', | ||
20 | redirectTo: 'video-abuses/list', | ||
21 | pathMatch: 'full' | ||
22 | }, | ||
23 | { | ||
24 | path: 'video-blacklist', | ||
25 | redirectTo: 'video-blacklist/list', | ||
26 | pathMatch: 'full' | ||
27 | }, | ||
28 | { | ||
19 | path: 'video-abuses/list', | 29 | path: 'video-abuses/list', |
20 | component: VideoAbuseListComponent, | 30 | component: VideoAbuseListComponent, |
21 | canActivate: [ UserRightGuard ], | 31 | canActivate: [ UserRightGuard ], |
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 57e63d465..9697ce202 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 | |||
@@ -105,7 +105,8 @@ export class UserListComponent extends RestTable implements OnInit { | |||
105 | return | 105 | return |
106 | } | 106 | } |
107 | 107 | ||
108 | const res = await this.confirmService.confirm(this.i18n('Do you really want to delete this user?'), this.i18n('Delete')) | 108 | const message = this.i18n('If you remove this user, you will not be able to create another with the same username!') |
109 | const res = await this.confirmService.confirm(message, this.i18n('Delete')) | ||
109 | if (res === false) return | 110 | if (res === false) return |
110 | 111 | ||
111 | this.userService.removeUser(user).subscribe( | 112 | this.userService.removeUser(user).subscribe( |