feat: Improve create link texts

Use `Create public link` for first link share creation

Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
nfebe 2025-01-22 11:58:40 +01:00
parent 33eaf9ca4d
commit 14573fc96c

View file

@ -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')
},
/**