Skip to content

Commit

Permalink
Merge pull request #41951 from nextcloud/fix/files-table-headers
Browse files Browse the repository at this point in the history
fix(files): Remove confusing table header labels
  • Loading branch information
susnux authored Dec 1, 2023
2 parents 2943304 + 57afeb1 commit e915c7d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
8 changes: 0 additions & 8 deletions apps/files/src/components/FilesListTableHeaderButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
'files-list__column-sort-button--active': sortingMode === mode,
'files-list__column-sort-button--size': sortingMode === 'size',
}]"
:aria-label="sortAriaLabel"
:alignment="mode === 'size' ? 'end' : 'start-reverse'"
type="tertiary"
@click="toggleSortBy(mode)">
Expand Down Expand Up @@ -71,13 +70,6 @@ export default defineComponent({
},
},

computed: {
sortAriaLabel() {
return this.t('files', 'Sort list by {column}', {
column: this.name,
})
},
},
methods: {
t: translate,
},
Expand Down
3 changes: 2 additions & 1 deletion apps/files/src/components/FilesListVirtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ export default defineComponent({
caption() {
const defaultCaption = t('files', 'List of files and folders.')
const viewCaption = this.currentView.caption || defaultCaption
const sortableCaption = t('files', 'Column headers with buttons are sortable.')
const virtualListNote = t('files', 'This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list.')
return viewCaption + '\n' + virtualListNote
return `${viewCaption}\n${sortableCaption}\n${virtualListNote}`
},
},

Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit e915c7d

Please sign in to comment.