Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
class="sharing-entry__copy">
<NcActionLink :href="shareLink"
target="_blank"
:aria-label="t('files_sharing', 'Copy public link to clipboard')"
:aria-label="clipboardTooltip"
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
@click.stop.prevent="copyLink">
{{ clipboardTooltip }}
Expand All @@ -50,6 +50,7 @@
<!-- pending actions -->
<NcActions v-if="!pending && (pendingPassword || pendingExpirationDate)"
class="sharing-entry__actions"
:aria-label="actionsTooltip"
menu-align="right"
:open.sync="open"
@close="onNewLinkShare">
Expand Down Expand Up @@ -122,6 +123,7 @@
<!-- actions -->
<NcActions v-else-if="!loading"
class="sharing-entry__actions"
:aria-label="actionsTooltip"
menu-align="right"
:open.sync="open"
@close="onMenuClose">
Expand Down Expand Up @@ -348,6 +350,10 @@ export default {
type: Boolean,
default: true,
},
index: {
type: Number,
default: null,
},
},

data() {
Expand Down Expand Up @@ -397,6 +403,9 @@ export default {
return this.share.shareWith
}
}
if (this.index > 1) {
return t('files_sharing', 'Share link ({index})', { index: this.index })
}
return t('files_sharing', 'Share link')
},

Expand Down Expand Up @@ -558,7 +567,16 @@ export default {
},

/**
* Clipboard v-tooltip message
* Tooltip message for actions button
*
* @return {string}
*/
actionsTooltip() {
return t('files_sharing', 'Actions for "{title}"', { title: this.title })
},

/**
* Tooltip message for copy button
*
* @return {string}
*/
Expand All @@ -569,7 +587,7 @@ export default {
}
return t('files_sharing', 'Cannot copy, please copy the link manually')
}
return t('files_sharing', 'Copy to clipboard')
return t('files_sharing', 'Copy public link of "{title}" to clipboard', { title: this.title })
},

/**
Expand Down
1 change: 1 addition & 0 deletions apps/files_sharing/src/views/SharingLinkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<!-- using shares[index] to work with .sync -->
<SharingEntryLink v-for="(share, index) in shares"
:key="share.id"
:index="shares.length > 1 ? index + 1 : null"
:can-reshare="canReshare"
:share.sync="shares[index]"
:file-info="fileInfo"
Expand Down
4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.