Skip to content

Commit

Permalink
Add quota sorting to the project quotas list
Browse files Browse the repository at this point in the history
1. For goharbor#16517

Signed-off-by: AllForNothing <sshijun@vmware.com>
  • Loading branch information
AllForNothing authored and AllForNothing committed Nov 15, 2023
1 parent 6a6e295 commit 676110c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
getPageSizeFromLocalStorage,
PageSizeMapKeys,
setPageSizeToLocalStorage,
getSortingString,
} from '../../../../shared/units/utils';
import { ErrorHandler } from '../../../../shared/units/error-handler';
import {
Expand Down Expand Up @@ -242,6 +243,7 @@ export class ProjectQuotasComponent implements OnChanges {
reference: QuotaType,
page: pageNumber,
pageSize: this.pageSize,
sort: getSortingString(state),
})
.pipe(
finalize(() => {
Expand Down

0 comments on commit 676110c

Please sign in to comment.