Skip to content

Commit e2566e7

Browse files
committed
fix(files_sharing): remove slash from filename on unshare toast
Signed-off-by: Kent Delante<kent@delante.me>
1 parent 5ba1fad commit e2566e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ export default {
292292
await this.deleteShare(this.share.id)
293293
logger.debug('Share deleted', { shareId: this.share.id })
294294
const message = this.share.itemType === 'file'
295-
? t('files_sharing', 'File "{path}" has been unshared', { path: this.share.path })
296-
: t('files_sharing', 'Folder "{path}" has been unshared', { path: this.share.path })
295+
? t('files_sharing', 'File "{path}" has been unshared', { path: this.share.path.replaceAll('/', '') })
296+
: t('files_sharing', 'Folder "{path}" has been unshared', { path: this.share.path.replaceAll('/', '') })
297297
showSuccess(message)
298298
this.$emit('remove:share', this.share)
299299
await this.getNode()

0 commit comments

Comments
 (0)