Merge pull request #41951 from nextcloud/fix/files-table-headers

fix(files): Remove confusing table header labels
This commit is contained in:
Ferdinand Thiessen 2023-12-01 18:03:42 +01:00 committed by GitHub
commit e915c7d09e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 12 deletions

View file

@ -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)">
@ -71,13 +70,6 @@ export default defineComponent({
},
},
computed: {
sortAriaLabel() {
return this.t('files', 'Sort list by {column}', {
column: this.name,
})
},
},
methods: {
t: translate,
},

View file

@ -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}`
},
},

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long