Merge pull request #45131 from nextcloud/chore/location-path-prefix

chore: Remove All files prefix from original location
pull/45149/head
Pytal 3 weeks ago committed by GitHub
commit 1098abd399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,7 +23,7 @@
import moment from '@nextcloud/moment'
import { Column, Node } from '@nextcloud/files'
import { getCurrentUser } from '@nextcloud/auth'
import { dirname, joinPaths } from '@nextcloud/paths'
import { dirname } from '@nextcloud/paths'
import { translate as t } from '@nextcloud/l10n'
import Vue from 'vue'
@ -38,7 +38,7 @@ const parseOriginalLocation = (node: Node): string => {
if (dir === path) { // Node is in root folder
return t('files_trashbin', 'All files')
}
return joinPaths(t('files_trashbin', 'All files'), dir)
return dir.replace(/^\//, '')
}
interface DeletedBy {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save