|
@@ -140,10 +140,13 @@ class UserTable extends React.Component {
|
|
|
<div className="mr-3">
|
|
<div className="mr-3">
|
|
|
<code>username</code>
|
|
<code>username</code>
|
|
|
</div>
|
|
</div>
|
|
|
- {/* <SortIcons
|
|
|
|
|
|
|
+ <SortIcons
|
|
|
isSelected={adminUsersContainer.state.sort === 'username'}
|
|
isSelected={adminUsersContainer.state.sort === 'username'}
|
|
|
- /> */}
|
|
|
|
|
- {/* { this.renderSortIcon('username') } */}
|
|
|
|
|
|
|
+ isAsc={isCurrentSortOrderAsc}
|
|
|
|
|
+ onClick={(sortOrder) => {
|
|
|
|
|
+ this.sortIconsClickedHandler('username', sortOrder);
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</th>
|
|
</th>
|
|
|
<th>
|
|
<th>
|
|
@@ -151,10 +154,13 @@ class UserTable extends React.Component {
|
|
|
<div className="mr-3">
|
|
<div className="mr-3">
|
|
|
{t('Name')}
|
|
{t('Name')}
|
|
|
</div>
|
|
</div>
|
|
|
- {/* <SortIcons
|
|
|
|
|
|
|
+ <SortIcons
|
|
|
isSelected={adminUsersContainer.state.sort === 'name'}
|
|
isSelected={adminUsersContainer.state.sort === 'name'}
|
|
|
- /> */}
|
|
|
|
|
- {/* { this.renderSortIcon('name')} */}
|
|
|
|
|
|
|
+ isAsc={isCurrentSortOrderAsc}
|
|
|
|
|
+ onClick={(sortOrder) => {
|
|
|
|
|
+ this.sortIconsClickedHandler('name', sortOrder);
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</th>
|
|
</th>
|
|
|
<th>
|
|
<th>
|
|
@@ -162,10 +168,13 @@ class UserTable extends React.Component {
|
|
|
<div className="mr-3">
|
|
<div className="mr-3">
|
|
|
{t('Email')}
|
|
{t('Email')}
|
|
|
</div>
|
|
</div>
|
|
|
- {/* <SortIcons
|
|
|
|
|
|
|
+ <SortIcons
|
|
|
isSelected={adminUsersContainer.state.sort === 'email'}
|
|
isSelected={adminUsersContainer.state.sort === 'email'}
|
|
|
- /> */}
|
|
|
|
|
- {/* { this.renderSortIcon('email')} */}
|
|
|
|
|
|
|
+ isAsc={isCurrentSortOrderAsc}
|
|
|
|
|
+ onClick={(sortOrder) => {
|
|
|
|
|
+ this.sortIconsClickedHandler('email', sortOrder);
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</th>
|
|
</th>
|
|
|
<th width="100px">
|
|
<th width="100px">
|
|
@@ -173,10 +182,13 @@ class UserTable extends React.Component {
|
|
|
<div className="mr-3">
|
|
<div className="mr-3">
|
|
|
{t('Created')}
|
|
{t('Created')}
|
|
|
</div>
|
|
</div>
|
|
|
- {/* <SortIcons
|
|
|
|
|
|
|
+ <SortIcons
|
|
|
isSelected={adminUsersContainer.state.sort === 'createdAt'}
|
|
isSelected={adminUsersContainer.state.sort === 'createdAt'}
|
|
|
- /> */}
|
|
|
|
|
- {/* { this.renderSortIcon('createdAt')} */}
|
|
|
|
|
|
|
+ isAsc={isCurrentSortOrderAsc}
|
|
|
|
|
+ onClick={(sortOrder) => {
|
|
|
|
|
+ this.sortIconsClickedHandler('createdAt', sortOrder);
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</th>
|
|
</th>
|
|
|
<th width="150px">
|
|
<th width="150px">
|
|
@@ -184,10 +196,13 @@ class UserTable extends React.Component {
|
|
|
<div className="mr-3">
|
|
<div className="mr-3">
|
|
|
{t('Last_Login')}
|
|
{t('Last_Login')}
|
|
|
</div>
|
|
</div>
|
|
|
- {/* <SortIcons
|
|
|
|
|
|
|
+ <SortIcons
|
|
|
isSelected={adminUsersContainer.state.sort === 'lastLoginAt'}
|
|
isSelected={adminUsersContainer.state.sort === 'lastLoginAt'}
|
|
|
- /> */}
|
|
|
|
|
- {/* { this.renderSortIcon('lastLoginAt')} */}
|
|
|
|
|
|
|
+ isAsc={isCurrentSortOrderAsc}
|
|
|
|
|
+ onClick={(sortOrder) => {
|
|
|
|
|
+ this.sortIconsClickedHandler('lastLoginAt', sortOrder);
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</th>
|
|
</th>
|
|
|
<th width="70px"></th>
|
|
<th width="70px"></th>
|