Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: Improve create link texts
Use `Create public link` for first link share creation

Signed-off-by: nfebe <[email protected]>
  • Loading branch information
nfebe committed Jan 23, 2025
commit 14573fc96cd1c2e500ea54b6ea8252d331a699a2
10 changes: 8 additions & 2 deletions apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,17 @@ export default {
}
return this.share.shareWith
}

if (this.index === null) {
return t('files_sharing', 'Share link')
}
}
if (this.index > 1) {

if (this.index >= 1) {
return t('files_sharing', 'Share link ({index})', { index: this.index })
}
return t('files_sharing', 'Share link')

return t('files_sharing', 'Create public link')
},

/**
Expand Down