Client: fixed the opening of move/copy panel via info panel

This commit is contained in:
DmitrySychugov 2023-10-06 16:28:56 +05:00
parent 8ad87705bd
commit 581a392329
2 changed files with 11 additions and 0 deletions

View File

@ -90,6 +90,7 @@ const FilesSelector = ({
socketHelper,
socketSubscribersId,
setMoveToPublicRoomVisible,
setInfoPanelIsMobileHidden
}: FilesSelectorProps) => {
const { t } = useTranslation(["Files", "Common", "Translations"]);
@ -292,6 +293,7 @@ const FilesSelector = ({
};
const onCloseAction = () => {
setInfoPanelIsMobileHidden(false);
if (onClose) {
onClose();
@ -592,6 +594,10 @@ export default inject(
setMoveToPublicRoomVisible,
} = dialogsStore;
const {
setIsMobileHidden: setInfoPanelIsMobileHidden,
} = auth.infoPanelStore;
const { theme, socketHelper } = auth.settingsStore;
const {
@ -654,6 +660,7 @@ export default inject(
setRestoreAllPanelVisible,
setIsFolderActions,
setSelectedItems,
setInfoPanelIsMobileHidden,
includeFolder,
socketHelper,
socketSubscribersId,

View File

@ -225,10 +225,14 @@ class ContextOptionsStore {
};
onMoveAction = () => {
const {setIsMobileHidden} = this.authStore.infoPanelStore;
setIsMobileHidden(true);
this.dialogsStore.setMoveToPanelVisible(true);
};
onCopyAction = () => {
const {setIsMobileHidden} = this.authStore.infoPanelStore;
setIsMobileHidden(true);
this.dialogsStore.setCopyPanelVisible(true);
};