mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #41951 from nextcloud/fix/files-table-headers
fix(files): Remove confusing table header labels
This commit is contained in:
commit
e915c7d09e
4 changed files with 5 additions and 12 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue