Skip to content

Commit faa16cf

Browse files
Pytalnextcloud-command
authored andcommitted
Differentiate share links
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent e2f9138 commit faa16cf

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<!-- pending actions -->
5151
<NcActions v-if="!pending && (pendingPassword || pendingExpirationDate)"
5252
class="sharing-entry__actions"
53+
:aria-label="actionsTooltip"
5354
menu-align="right"
5455
:open.sync="open"
5556
@close="onNewLinkShare">
@@ -122,6 +123,7 @@
122123
<!-- actions -->
123124
<NcActions v-else-if="!loading"
124125
class="sharing-entry__actions"
126+
:aria-label="actionsTooltip"
125127
menu-align="right"
126128
:open.sync="open"
127129
@close="onMenuClose">
@@ -348,6 +350,10 @@ export default {
348350
type: Boolean,
349351
default: true,
350352
},
353+
index: {
354+
type: Number,
355+
default: null,
356+
},
351357
},
352358
353359
data() {
@@ -397,6 +403,9 @@ export default {
397403
return this.share.shareWith
398404
}
399405
}
406+
if (this.index > 1) {
407+
return t('files_sharing', 'Share link ({index})', { index: this.index })
408+
}
400409
return t('files_sharing', 'Share link')
401410
},
402411

apps/files_sharing/src/views/SharingLinkList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<!-- using shares[index] to work with .sync -->
3434
<SharingEntryLink v-for="(share, index) in shares"
3535
:key="share.id"
36+
:index="shares.length > 1 ? index + 1 : null"
3637
:can-reshare="canReshare"
3738
:share.sync="shares[index]"
3839
:file-info="fileInfo"

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)