mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
feat: request users ordered by creation date (#5160)
* feat: request users ordered by creation date * fix: missing case for creationDate in user-table --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
parent
99bb8ab771
commit
7fc3ecf665
@ -174,7 +174,7 @@
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="creationDate">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'USER.TABLE.CREATIONDATE' | translate }}</th>
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'USER.TABLE.CREATIONDATE' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let user" [routerLink]="user.id ? ['/users', user.id] : null">
|
||||
<span class="no-break">{{ user.details.creationDate | timestampToDate | localizedDate : 'fromNow' }}</span>
|
||||
</td>
|
||||
|
@ -200,6 +200,9 @@ export class UserTableComponent implements OnInit {
|
||||
case 'state':
|
||||
sortingField = UserFieldName.USER_FIELD_NAME_STATE;
|
||||
break;
|
||||
case 'creationDate':
|
||||
sortingField = UserFieldName.USER_FIELD_NAME_CREATION_DATE;
|
||||
break;
|
||||
}
|
||||
this.userService
|
||||
.listUsers(
|
||||
|
@ -709,6 +709,7 @@ UserTypeQuery is always equals
|
||||
| USER_FIELD_NAME_EMAIL | 6 | - |
|
||||
| USER_FIELD_NAME_STATE | 7 | - |
|
||||
| USER_FIELD_NAME_TYPE | 8 | - |
|
||||
| USER_FIELD_NAME_CREATION_DATE | 9 | - |
|
||||
|
||||
|
||||
|
||||
|
@ -57,6 +57,8 @@ func UserFieldNameToSortingColumn(field user.UserFieldName) query.Column {
|
||||
return query.UserTypeCol
|
||||
case user.UserFieldName_USER_FIELD_NAME_NICK_NAME:
|
||||
return query.HumanNickNameCol
|
||||
case user.UserFieldName_USER_FIELD_NAME_CREATION_DATE:
|
||||
return query.UserCreationDateCol
|
||||
default:
|
||||
return query.UserIDCol
|
||||
}
|
||||
|
@ -330,6 +330,7 @@ enum UserFieldName {
|
||||
USER_FIELD_NAME_EMAIL = 6;
|
||||
USER_FIELD_NAME_STATE = 7;
|
||||
USER_FIELD_NAME_TYPE = 8;
|
||||
USER_FIELD_NAME_CREATION_DATE = 9;
|
||||
}
|
||||
|
||||
message AuthFactor {
|
||||
|
Loading…
Reference in New Issue
Block a user