Skip to content

Commit

Permalink
Creation Time -> Release Time
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed May 31, 2024
1 parent 1e9429b commit 7442b66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ui/constants/file_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export const SORT_ORDER = Object.freeze({

export const SORT_KEYS = Object.freeze({
NAME: 'name',
CREATED_AT: 'createdAt',
RELEASED_AT: 'releasedAt',
UPDATED_AT: 'updatedAt',
});

export const SORT_VALUES = Object.freeze({
[SORT_KEYS.NAME]: { str: 'Name', orders: { [SORT_ORDER.ASC]: 'A-Z', [SORT_ORDER.DESC]: 'Z-A' } },
[SORT_KEYS.CREATED_AT]: {
str: 'Creation Time',
[SORT_KEYS.RELEASED_AT]: {
str: 'Release Time',
orders: { [SORT_ORDER.ASC]: 'Newest First', [SORT_ORDER.DESC]: 'Oldest First' },
},
[SORT_KEYS.UPDATED_AT]: {
Expand Down
2 changes: 1 addition & 1 deletion ui/page/fileListPublished/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function FileListPublished(props: Props) {
function getComparisonObj() {
let timestampComparisonObj = {};
switch (sortOption.key) {
case FILE_LIST.SORT_KEYS.CREATED_AT:
case FILE_LIST.SORT_KEYS.RELEASED_AT:
firstComparisonItem = sortOption.value === FILE_LIST.SORT_ORDER.DESC ? claimA : claimB;
secondComparisonItem = sortOption.value === FILE_LIST.SORT_ORDER.DESC ? claimB : claimA;

Expand Down

0 comments on commit 7442b66

Please sign in to comment.