Skip to content

Commit

Permalink
feat: Improve create link texts
Browse files Browse the repository at this point in the history
Use `Create public link` for first link share creation

Signed-off-by: nfebe <fenn25.fn@gmail.com>
  • Loading branch information
nfebe committed Jan 22, 2025
1 parent f70d993 commit e94ce09
Showing 1 changed file with 8 additions and 2 deletions.
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

0 comments on commit e94ce09

Please sign in to comment.