|
@@ -17,8 +17,8 @@ export default class AdminUsersContainer extends Container {
|
|
|
|
|
|
|
|
this.state = {
|
|
this.state = {
|
|
|
users: [],
|
|
users: [],
|
|
|
- sort: 'status',
|
|
|
|
|
- sortOrder: 'asc',
|
|
|
|
|
|
|
+ sort: 'status', // 何をソートするか
|
|
|
|
|
+ sortOrder: 'asc', // 昇順か降順か
|
|
|
isPasswordResetModalShown: false,
|
|
isPasswordResetModalShown: false,
|
|
|
isUserInviteModalShown: false,
|
|
isUserInviteModalShown: false,
|
|
|
userForPasswordResetModal: null,
|
|
userForPasswordResetModal: null,
|
|
@@ -46,6 +46,7 @@ export default class AdminUsersContainer extends Container {
|
|
|
this.setState({ notifyComment });
|
|
this.setState({ notifyComment });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // status
|
|
|
isSelected(statusType) {
|
|
isSelected(statusType) {
|
|
|
return this.state.selectedStatusList.has(statusType);
|
|
return this.state.selectedStatusList.has(statusType);
|
|
|
}
|
|
}
|
|
@@ -86,6 +87,7 @@ export default class AdminUsersContainer extends Container {
|
|
|
this.retrieveUsersByPagingNum(1);
|
|
this.retrieveUsersByPagingNum(1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Input Serch Text
|
|
|
handleChangeSearchText(searchText) {
|
|
handleChangeSearchText(searchText) {
|
|
|
this.setState({ searchText });
|
|
this.setState({ searchText });
|
|
|
this.retrieveUsersByPagingNum(1);
|
|
this.retrieveUsersByPagingNum(1);
|
|
@@ -95,6 +97,19 @@ export default class AdminUsersContainer extends Container {
|
|
|
this.setState({ searchText: '' });
|
|
this.setState({ searchText: '' });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // sorting
|
|
|
|
|
+ onClickSortAsc(sort) {
|
|
|
|
|
+ this.setState({ sort });
|
|
|
|
|
+ this.setState({ sortOrder: 'asc' });
|
|
|
|
|
+ this.retrieveUsersByPagingNum(1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ onClickSortDesc(sort) {
|
|
|
|
|
+ this.setState({ sort });
|
|
|
|
|
+ this.setState({ sortOrder: 'desc' });
|
|
|
|
|
+ this.retrieveUsersByPagingNum(1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* syncUsers of selectedPage
|
|
* syncUsers of selectedPage
|
|
|
* @memberOf AdminUsersContainer
|
|
* @memberOf AdminUsersContainer
|