Merge pull request #61528 from nextcloud/backport/61303/stable34

[stable34] fix(files_sharing): remove filename's leading slash on unshare toast
This commit is contained in:
Andy Scherzinger 2026-06-26 21:08:41 +02:00 committed by GitHub
commit 09287c0a6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 8 deletions

View file

@ -291,9 +291,10 @@ export default {
this.open = false
await this.deleteShare(this.share.id)
logger.debug('Share deleted', { shareId: this.share.id })
const path = this.share.path.replace(/^\//, '')
const message = this.share.itemType === 'file'
? t('files_sharing', 'File "{path}" has been unshared', { path: this.share.path })
: t('files_sharing', 'Folder "{path}" has been unshared', { path: this.share.path })
? t('files_sharing', 'File "{path}" has been unshared', { path })
: t('files_sharing', 'Folder "{path}" has been unshared', { path })
showSuccess(message)
this.$emit('remove:share', this.share)
await this.getNode()

4
dist/1991-1991.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long