]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore: Remove All files prefix from original location
authorChristopher Ng <chrng8@gmail.com>
Tue, 30 Apr 2024 23:49:33 +0000 (16:49 -0700)
committerChristopher Ng <chrng8@gmail.com>
Tue, 30 Apr 2024 23:49:33 +0000 (16:49 -0700)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/files_trashbin/src/columns.ts

index 2b5e3ecfd6c2a45740a7899cc4c3bc0deeae3dd4..fecf250e34e9ea29130644b46c81921299601cbe 100644 (file)
@@ -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 {