diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-04-30 16:49:33 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-04-30 16:49:33 -0700 |
commit | 266c584d165eb2ff087dade4f666507dfba4751c (patch) | |
tree | 1eff0c37053103df4c6ab55bea17175b6e5315ce /apps | |
parent | c24f460a8bfd2490925b2e4e9786053bbb17f4eb (diff) | |
download | nextcloud-server-266c584d165eb2ff087dade4f666507dfba4751c.tar.gz nextcloud-server-266c584d165eb2ff087dade4f666507dfba4751c.zip |
chore: Remove All files prefix from original location
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_trashbin/src/columns.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/src/columns.ts b/apps/files_trashbin/src/columns.ts index 2b5e3ecfd6c..fecf250e34e 100644 --- a/apps/files_trashbin/src/columns.ts +++ b/apps/files_trashbin/src/columns.ts @@ -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 { |