diff --git a/src/components/Chat/ChangePathDialog.tsx b/src/components/Chat/ChangePathDialog.tsx index b352c6370b..ae650493ea 100644 --- a/src/components/Chat/ChangePathDialog.tsx +++ b/src/components/Chat/ChangePathDialog.tsx @@ -22,7 +22,10 @@ import { } from '@/src/store/prompts/prompts.reducers'; import { UIActions } from '@/src/store/ui/ui.reducers'; -import { MAX_CHAT_AND_PROMPT_FOLDERS_DEPTH } from '@/src/constants/folders'; +import { + MAX_CHAT_AND_PROMPT_FOLDERS_DEPTH, + PUBLISHING_FOLDER_NAME, +} from '@/src/constants/folders'; import { SelectFolder } from '@/src/components/Common/SelectFolder/SelectFolder'; import { SelectFolderFooter } from '@/src/components/Common/SelectFolder/SelectFolderFooter'; @@ -197,6 +200,7 @@ export const ChangePathDialog = ({ initiallySelectedFolderId={initiallySelectedFolderId} selectedFolderId={selectedFolderId} highlightTemporaryFolders + rootFolderName={PUBLISHING_FOLDER_NAME} /> { folderProps: Omit, 'currentFolder'>; handleToggleFolder: (folderId?: string) => void; isAllEntitiesOpened: boolean; + rootFolderName: string; selectedFolderId?: string; initiallySelectedFolderId?: string; highlightTemporaryFolders?: boolean; @@ -34,6 +32,7 @@ export const SelectFolderList = ({ selectedFolderId, initiallySelectedFolderId, highlightTemporaryFolders, + rootFolderName, }: Props) => { const { t } = useTranslation(Translation.Chat); @@ -53,7 +52,7 @@ export const SelectFolderList = ({ onClick={() => handleToggleFolder()} > - {t(PUBLISHING_FOLDER_NAME)} + {t(rootFolderName)} {isAllEntitiesOpened && (
diff --git a/src/components/Files/SelectFolderModal.tsx b/src/components/Files/SelectFolderModal.tsx index ba4f23caa8..e32bfdb3f5 100644 --- a/src/components/Files/SelectFolderModal.tsx +++ b/src/components/Files/SelectFolderModal.tsx @@ -116,6 +116,7 @@ export const SelectFolderModal = ({ handleToggleFolder={handleToggleFolder} isAllEntitiesOpened={isAllFilesOpened} selectedFolderId={selectedFolderId} + rootFolderName="All files" />