Client:Components:FilesSelector: pass files settings
This commit is contained in:
parent
adf093adb6
commit
456d73bc09
@ -24,7 +24,11 @@
|
||||
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
|
||||
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
import { TFile, TFolder } from "@docspace/shared/api/files/types";
|
||||
import {
|
||||
TFile,
|
||||
TFilesSettings,
|
||||
TFolder,
|
||||
} from "@docspace/shared/api/files/types";
|
||||
import { TBreadCrumb } from "@docspace/shared/components/selector/Selector.types";
|
||||
import { DeviceType } from "@docspace/shared/enums";
|
||||
import { TTheme } from "@docspace/shared/themes";
|
||||
@ -142,4 +146,6 @@ export type FilesSelectorProps = {
|
||||
|
||||
roomsFolderId?: number;
|
||||
openRoot?: boolean;
|
||||
|
||||
filesSettings: TFilesSettings;
|
||||
};
|
||||
|
@ -138,6 +138,8 @@ const FilesSelectorWrapper = ({
|
||||
|
||||
roomsFolderId,
|
||||
openRoot,
|
||||
|
||||
filesSettings,
|
||||
}: FilesSelectorProps) => {
|
||||
const { t }: { t: TTranslation } = useTranslation([
|
||||
"Files",
|
||||
@ -387,8 +389,7 @@ const FilesSelectorWrapper = ({
|
||||
}
|
||||
getFilesArchiveError={getFilesArchiveError}
|
||||
withCreate={(isMove || isCopy || isRestore || isRestoreAll) ?? false}
|
||||
// createDefineRoomLabel="New filling from room"
|
||||
// createDefineRoomType={RoomsType.FormRoom}
|
||||
filesSettings={filesSettings}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@ -460,7 +461,7 @@ export default inject(
|
||||
setSelected,
|
||||
filesSettingsStore,
|
||||
} = filesStore;
|
||||
const { getIcon } = filesSettingsStore;
|
||||
const { getIcon, filesSettings } = filesSettingsStore;
|
||||
const { isVisible: infoPanelIsVisible, infoPanelSelection } =
|
||||
infoPanelStore;
|
||||
|
||||
@ -514,6 +515,8 @@ export default inject(
|
||||
? +sessionPath
|
||||
: fromFolderId);
|
||||
|
||||
console.log(filesSettings);
|
||||
|
||||
return {
|
||||
fromFolderId,
|
||||
parentId,
|
||||
@ -551,6 +554,7 @@ export default inject(
|
||||
|
||||
roomsFolderId,
|
||||
currentFolderId: folderId,
|
||||
filesSettings,
|
||||
};
|
||||
},
|
||||
)(observer(FilesSelectorWrapper));
|
||||
|
Loading…
Reference in New Issue
Block a user