소스 검색

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

chore: Remove All files prefix from original location
Pytal 1 개월 전
부모
커밋
1098abd399
3개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apps/files_trashbin/src/columns.ts
  2. 0 0
      dist/files_trashbin-main.js
  3. 0 0
      dist/files_trashbin-main.js.map

+ 2 - 2
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 {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/files_trashbin-main.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/files_trashbin-main.js.map


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.