Skip to content

Commit

Permalink
Merge branch 'main' into RHOAIENG-13596_doc_links
Browse files Browse the repository at this point in the history
  • Loading branch information
aduquett authored Oct 1, 2024
2 parents 80c6181 + 9372a8a commit 5510ca3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ODH_FAVICON=odh-favicon.svg
ODH_NOTEBOOK_REPO=opendatahub

########## Change this version with each dashboard release ###########
INTERNAL_DASHBOARD_VERSION=v2.26.0
INTERNAL_DASHBOARD_VERSION=v2.27.0
11 changes: 10 additions & 1 deletion frontend/src/pages/storageClasses/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ export const columns: SortableData<StorageClassKind>[] = [
{
field: 'displayName',
label: ColumnLabel.DisplayName,
sortable: (a, b) => a.metadata.name.localeCompare(b.metadata.name),
sortable: (a: StorageClassKind, b: StorageClassKind): number => {
const configDisplayNameA = getStorageClassConfig(a)?.displayName;
const configDisplayNameB = getStorageClassConfig(b)?.displayName;

if (configDisplayNameA && configDisplayNameB) {
return configDisplayNameA.localeCompare(configDisplayNameB);
}

return -1;
},
info: {
popoverProps: { headerContent: 'Display name' },
popover:
Expand Down

0 comments on commit 5510ca3

Please sign in to comment.