-->
<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"
<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'
},
methods: {
+ t,
+
/**
* Add a new share into the link shares list
* and return the newly created share component
-->
<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"
</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'
required: true,
},
},
+
+ setup() {
+ return {
+ t,
+ }
+ },
computed: {
hasShares() {
return this.shares.length === 0