mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
Add quota sorting to the project quotas list (#19576)
1. For #16517 Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
6a6e29570c
commit
7718134301
@ -67,7 +67,9 @@
|
||||
</clr-dg-action-bar>
|
||||
<clr-dg-column>{{ 'QUOTA.PROJECT' | translate }}</clr-dg-column>
|
||||
<clr-dg-column>{{ 'QUOTA.OWNER' | translate }}</clr-dg-column>
|
||||
<clr-dg-column>{{ 'QUOTA.STORAGE' | translate }}</clr-dg-column>
|
||||
<clr-dg-column [clrDgSortBy]="'used.storage'">{{
|
||||
'QUOTA.STORAGE' | translate
|
||||
}}</clr-dg-column>
|
||||
<clr-dg-placeholder>{{
|
||||
'QUOTA.PLACEHOLDER' | translate
|
||||
}}</clr-dg-placeholder>
|
||||
|
@ -20,6 +20,7 @@ import {
|
||||
getPageSizeFromLocalStorage,
|
||||
PageSizeMapKeys,
|
||||
setPageSizeToLocalStorage,
|
||||
getSortingString,
|
||||
} from '../../../../shared/units/utils';
|
||||
import { ErrorHandler } from '../../../../shared/units/error-handler';
|
||||
import {
|
||||
@ -242,6 +243,7 @@ export class ProjectQuotasComponent implements OnChanges {
|
||||
reference: QuotaType,
|
||||
page: pageNumber,
|
||||
pageSize: this.pageSize,
|
||||
sort: getSortingString(state),
|
||||
})
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user