Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/components/folder-tree/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export const SORT_MENU_CONFIG = [
],
},
{
items: [{ label: t('components.folder.sortDrop'), value: SORT_TYPES.CUSTOM }],
items: [{ label: t('components.folder.custom'), value: SORT_TYPES.CUSTOM }],
},
]
4 changes: 2 additions & 2 deletions ui/src/components/folder-tree/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ function openMoveToDialog(data: any) {
MoveToDialogRef.value.open(obj, true)
}

const CUSTOM_STORAGE_KEY = `${user.userInfo?.id}-${props.source}-folder-custom-positions`
const FOLDER_SORT_TYPE = `${user.userInfo?.id}-${props.source}-folder-sort-type`
const CUSTOM_STORAGE_KEY = `${user.userInfo?.id}-${user.getWorkspaceId()}-${props.source}-folder-custom-positions`
const FOLDER_SORT_TYPE = `${user.userInfo?.id}-${user.getWorkspaceId()}-${props.source}-folder-sort-type`

const dataWithOrder = computed(() => {
if (currentSort.value !== SORT_TYPES.CUSTOM || !props.data?.length) {
Expand Down