mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 13:01:34 -04:00
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:
commit
09287c0a6c
5 changed files with 9 additions and 8 deletions
|
|
@ -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
4
dist/1991-1991.js
vendored
File diff suppressed because one or more lines are too long
2
dist/1991-1991.js.map
vendored
2
dist/1991-1991.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue