Web: Files: MoveToPublicRoomDialog is disabled for public files
This commit is contained in:
parent
98eccb51f8
commit
9621306ca8
@ -654,7 +654,7 @@ class HotkeyStore {
|
||||
},
|
||||
};
|
||||
|
||||
if (isPublic) {
|
||||
if (isPublic && !selections.rootFolderType) {
|
||||
this.dialogsStore.setMoveToPublicRoomVisible(true, operationData);
|
||||
return;
|
||||
}
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user