diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-03-24 17:17:29 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-04-06 14:49:31 +0200 |
commit | 0f717d408f73e02a0c0555f242936b75845b3a91 (patch) | |
tree | 5a20630f0920f7d788b749883611afafd8febe8e /apps/files/src/components/FilesListHeader.vue | |
parent | 0e764f753a3d47bba946dc3f64cef9536ac98d43 (diff) | |
download | nextcloud-server-0f717d408f73e02a0c0555f242936b75845b3a91.tar.gz nextcloud-server-0f717d408f73e02a0c0555f242936b75845b3a91.zip |
feat(accessibility): add files table caption and summary
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/components/FilesListHeader.vue')
-rw-r--r-- | apps/files/src/components/FilesListHeader.vue | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/apps/files/src/components/FilesListHeader.vue b/apps/files/src/components/FilesListHeader.vue index b69a394a812..e39d7b4cade 100644 --- a/apps/files/src/components/FilesListHeader.vue +++ b/apps/files/src/components/FilesListHeader.vue @@ -60,9 +60,6 @@ <script lang="ts"> import { mapState } from 'pinia' import { translate } from '@nextcloud/l10n' -import MenuDown from 'vue-material-design-icons/MenuDown.vue' -import MenuUp from 'vue-material-design-icons/MenuUp.vue' -import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' import Vue from 'vue' @@ -168,16 +165,6 @@ export default Vue.extend({ } }, - sortAriaLabel(column) { - const direction = this.isAscSorting - ? this.t('files', 'ascending') - : this.t('files', 'descending') - return this.t('files', 'Sort list by {column} ({direction})', { - column, - direction, - }) - }, - onToggleAll(selected) { if (selected) { const selection = this.nodes.map(node => node.attributes.fileid.toString()) @@ -189,23 +176,6 @@ export default Vue.extend({ } }, - toggleSortBy(key) { - // If we're already sorting by this key, flip the direction - if (this.sortingMode === key) { - this.sortingStore.toggleSortingDirection(this.currentView.id) - return - } - // else sort ASC by this new key - this.sortingStore.setSortingBy(key, this.currentView.id) - }, - - toggleSortByCustomColumn(column) { - if (!column.sort) { - return - } - this.toggleSortBy(column.id) - }, - t: translate, }, }) |