diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-13 19:57:57 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-13 19:57:57 +0200 |
commit | d6af81469ba9390ce8ce80161a7de3526ae0253d (patch) | |
tree | 739e91d6bc779b5cce5af3db68813a48dd780784 /client/src/app/+admin/users/user-list/user-list.component.ts | |
parent | 2bc9bd08cd121bdffbf56a0241c4decfb77bfdd5 (diff) | |
download | PeerTube-d6af81469ba9390ce8ce80161a7de3526ae0253d.tar.gz PeerTube-d6af81469ba9390ce8ce80161a7de3526ae0253d.tar.zst PeerTube-d6af81469ba9390ce8ce80161a7de3526ae0253d.zip |
Rich reporter field and video embed in moderation abuse list
Diffstat (limited to 'client/src/app/+admin/users/user-list/user-list.component.ts')
-rw-r--r-- | client/src/app/+admin/users/user-list/user-list.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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 0de123e93..667a0e1fd 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 | |||
@@ -7,6 +7,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
7 | import { ServerConfig, User } from '../../../../../../shared' | 7 | import { ServerConfig, User } from '../../../../../../shared' |
8 | import { UserBanModalComponent } from '@app/shared/moderation' | 8 | import { UserBanModalComponent } from '@app/shared/moderation' |
9 | import { DropdownAction } from '@app/shared/buttons/action-dropdown.component' | 9 | import { DropdownAction } from '@app/shared/buttons/action-dropdown.component' |
10 | import { Actor } from '@app/shared/actor/actor.model' | ||
10 | 11 | ||
11 | @Component({ | 12 | @Component({ |
12 | selector: 'my-user-list', | 13 | selector: 'my-user-list', |
@@ -105,6 +106,10 @@ export class UserListComponent extends RestTable implements OnInit { | |||
105 | this.loadData() | 106 | this.loadData() |
106 | } | 107 | } |
107 | 108 | ||
109 | switchToDefaultAvatar ($event: Event) { | ||
110 | ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL() | ||
111 | } | ||
112 | |||
108 | async unbanUsers (users: User[]) { | 113 | async unbanUsers (users: User[]) { |
109 | const message = this.i18n('Do you really want to unban {{num}} users?', { num: users.length }) | 114 | const message = this.i18n('Do you really want to unban {{num}} users?', { num: users.length }) |
110 | 115 | ||