diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-04 23:10:05 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-06 03:38:48 +0200 |
commit | cb4c5694866926a4209cf2ba25d23c6840273f56 (patch) | |
tree | a9d69305f3c82d0dcde449b4d4c75e9619067033 /apps/files_sharing/src | |
parent | c9dc0afcb1c571deae7b43550ed8bc52b9c77afc (diff) | |
download | nextcloud-server-cb4c5694866926a4209cf2ba25d23c6840273f56.tar.gz nextcloud-server-cb4c5694866926a4209cf2ba25d23c6840273f56.zip |
fix(files_sharing): Ensure sidebar share entry lists are labelled
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/views/SharingLinkList.vue | 8 | ||||
-rw-r--r-- | apps/files_sharing/src/views/SharingList.vue | 10 |
2 files changed, 14 insertions, 4 deletions
diff --git a/apps/files_sharing/src/views/SharingLinkList.vue b/apps/files_sharing/src/views/SharingLinkList.vue index b10f41eaa15..2d800c97000 100644 --- a/apps/files_sharing/src/views/SharingLinkList.vue +++ b/apps/files_sharing/src/views/SharingLinkList.vue @@ -4,7 +4,9 @@ --> <template> - <ul v-if="canLinkShare" class="sharing-link-list"> + <ul v-if="canLinkShare" + :aria-label="t('files_sharing', 'Link shares')" + class="sharing-link-list"> <!-- If no link shares, show the add link default entry --> <SharingEntryLink v-if="!hasLinkShares && canReshare" :can-reshare="canReshare" @@ -30,8 +32,8 @@ <script> import { getCapabilities } from '@nextcloud/capabilities' +import { t } from '@nextcloud/l10n' -// eslint-disable-next-line no-unused-vars import Share from '../models/Share.js' import ShareTypes from '../mixins/ShareTypes.js' import SharingEntryLink from '../components/SharingEntryLink.vue' @@ -92,6 +94,8 @@ export default { }, methods: { + t, + /** * Add a new share into the link shares list * and return the newly created share component diff --git a/apps/files_sharing/src/views/SharingList.vue b/apps/files_sharing/src/views/SharingList.vue index 7294294afa4..4d25e5cfeec 100644 --- a/apps/files_sharing/src/views/SharingList.vue +++ b/apps/files_sharing/src/views/SharingList.vue @@ -4,7 +4,7 @@ --> <template> - <ul class="sharing-sharee-list"> + <ul class="sharing-sharee-list" :aria-label="t('files_sharing', 'Shares')"> <SharingEntry v-for="share in shares" :key="share.id" :file-info="fileInfo" @@ -15,7 +15,7 @@ </template> <script> -// eslint-disable-next-line no-unused-vars +import { t } from '@nextcloud/l10n' import SharingEntry from '../components/SharingEntry.vue' import ShareTypes from '../mixins/ShareTypes.js' import ShareDetails from '../mixins/ShareDetails.js' @@ -41,6 +41,12 @@ export default { required: true, }, }, + + setup() { + return { + t, + } + }, computed: { hasShares() { return this.shares.length === 0 |