Skip to content

Commit

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

Signed-off-by: AllForNothing <sshijun@vmware.com>
Signed-off-by: Altynbaev Dinislam <altynbayevdr@sberautotech.ru>
  • Loading branch information
AllForNothing authored and Altynbaev Dinislam committed Jan 29, 2024
1 parent c83f553 commit 7991cd6
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 7991cd6

Please sign in to comment.