Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: attachments supports sorting by display name #5494

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions ui/console-src/modules/contents/attachments/AttachmentList.vue
Expand Up @@ -372,6 +372,18 @@ onMounted(() => {
),
value: 'metadata.creationTimestamp,asc',
},
{
label: t(
'core.attachment.filters.sort.items.display_name_desc'
),
value: 'spec.displayName,desc',
},
{
label: t(
'core.attachment.filters.sort.items.display_name_asc'
),
value: 'spec.displayName,asc',
},
{
label: t(
'core.attachment.filters.sort.items.size_desc'
Expand Down
4 changes: 3 additions & 1 deletion ui/src/locales/en.yaml
Expand Up @@ -40,7 +40,7 @@ core:
buttons:
sending: sending
send: Send Code
countdown: "resend after {timer} seconds"
countdown: resend after {timer} seconds
toast_success: verification code sent
toast_email_empty: please enter your email address
password:
Expand Down Expand Up @@ -545,6 +545,8 @@ core:
create_time_asc: Earliest uploaded
size_desc: Descending order by file size
size_asc: Ascending order by file size
display_name_asc: Ascending order by display name
display_name_desc: Descending order by display name
view_type:
items:
grid: Grid Mode
Expand Down
2 changes: 2 additions & 0 deletions ui/src/locales/zh-CN.yaml
Expand Up @@ -533,6 +533,8 @@ core:
create_time_asc: 较晚上传
size_desc: 文件大小降序
size_asc: 文件大小升序
display_name_asc: 文件名升序
display_name_desc: 文件名降序
view_type:
items:
grid: 网格模式
Expand Down
2 changes: 2 additions & 0 deletions ui/src/locales/zh-TW.yaml
Expand Up @@ -521,6 +521,8 @@ core:
create_time_asc: 較晚上傳
size_desc: 文件大小降序
size_asc: 文件大小升序
display_name_asc: 文件名升序
display_name_desc: 文件名降序
view_type:
items:
grid: 網格模式
Expand Down