aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/users/user-list
diff options
context:
space:
mode:
authorBO41 <lukasw41@gmail.com>2018-10-16 01:04:50 +0200
committerRigel Kent <par@rigelk.eu>2018-10-16 01:04:50 +0200
commitdffd5d127f49eb63d2b2b3133aec75ec1d7e4dcb (patch)
tree4c0f57248268e780804243dac46f8ae9bda96a94 /client/src/app/+admin/users/user-list
parent4fe98be6b421498577dc0bbcbe22c105408f394d (diff)
downloadPeerTube-dffd5d127f49eb63d2b2b3133aec75ec1d7e4dcb.tar.gz
PeerTube-dffd5d127f49eb63d2b2b3133aec75ec1d7e4dcb.tar.zst
PeerTube-dffd5d127f49eb63d2b2b3133aec75ec1d7e4dcb.zip
update tslint config and fix member ordering (#1279)
Diffstat (limited to 'client/src/app/+admin/users/user-list')
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts28
1 files changed, 14 insertions, 14 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 33384dc35..ab2250722 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
@@ -55,20 +55,6 @@ export class UserListComponent extends RestTable implements OnInit {
55 ] 55 ]
56 } 56 }
57 57
58 protected loadData () {
59 this.selectedUsers = []
60
61 this.userService.getUsers(this.pagination, this.sort, this.search)
62 .subscribe(
63 resultList => {
64 this.users = resultList.data
65 this.totalRecords = resultList.total
66 },
67
68 err => this.notificationsService.error(this.i18n('Error'), err.message)
69 )
70 }
71
72 openBanUserModal (users: User[]) { 58 openBanUserModal (users: User[]) {
73 for (const user of users) { 59 for (const user of users) {
74 if (user.username === 'root') { 60 if (user.username === 'root') {
@@ -131,4 +117,18 @@ export class UserListComponent extends RestTable implements OnInit {
131 isInSelectionMode () { 117 isInSelectionMode () {
132 return this.selectedUsers.length !== 0 118 return this.selectedUsers.length !== 0
133 } 119 }
120
121 protected loadData () {
122 this.selectedUsers = []
123
124 this.userService.getUsers(this.pagination, this.sort, this.search)
125 .subscribe(
126 resultList => {
127 this.users = resultList.data
128 this.totalRecords = resultList.total
129 },
130
131 err => this.notificationsService.error(this.i18n('Error'), err.message)
132 )
133 }
134} 134}