Web: Files: MoveToPublicRoomDialog is disabled for public files

This commit is contained in:
Nikita Gopienko 2024-07-15 18:01:49 +03:00
parent 98eccb51f8
commit 9621306ca8
2 changed files with 4 additions and 2 deletions

View File

@ -654,7 +654,7 @@ class HotkeyStore {
},
};
if (isPublic) {
if (isPublic && !selections.rootFolderType) {
this.dialogsStore.setMoveToPublicRoomVisible(true, operationData);
return;
}

View File

@ -427,7 +427,9 @@ const FilesSelectorComponent = ({
isChecked: boolean,
) => {
const isPublic =
breadCrumbs.findIndex((f) => f.roomType === RoomsType.PublicRoom) > -1;
breadCrumbs.findIndex((f) => f.roomType === RoomsType.PublicRoom) >
-1 && rootFolderType !== FolderType.Rooms;
const folderTitle = breadCrumbs[breadCrumbs.length - 1].label;
await onSubmit(