do not allow slide/presentation change on breakout update

This commit is contained in:
Ramón Souza 2024-08-05 10:34:17 -03:00
parent 59a2efd8f0
commit d6250cbe4d
3 changed files with 5 additions and 1 deletions

View File

@ -196,6 +196,7 @@ const BreakoutRoomUserAssignment: React.FC<ChildComponentProps> = ({
setRoomPresentations,
currentPresentation,
roomPresentations,
isUpdate,
}) => {
const intl = useIntl();
@ -337,7 +338,7 @@ const BreakoutRoomUserAssignment: React.FC<ChildComponentProps> = ({
{intl.formatMessage(intlMessages.roomNameInputDesc)}
</div>
</Styled.FreeJoinLabel>
{ presentations.length > 0 ? (
{ presentations.length > 0 && !isUpdate ? (
<Styled.BreakoutSlideLabel>
<Styled.InputRooms
value={getRoomPresentation(value)}

View File

@ -530,6 +530,7 @@ const CreateBreakoutRoom: React.FC<CreateBreakoutRoomProps> = ({
currentPresentation={currentPresentation}
currentSlidePrefix={CURRENT_SLIDE_PREFIX}
getRoomPresentation={getRoomPresentation}
isUpdate={isUpdate}
/>
</Styled.Content>
</ModalFullscreen>

View File

@ -44,6 +44,7 @@ const RoomManagmentState: React.FC<RoomManagmentStateProps> = ({
currentPresentation,
currentSlidePrefix,
getRoomPresentation,
isUpdate,
}) => {
const intl = useIntl();
const [selectedId, setSelectedId] = useState<string>('');
@ -238,6 +239,7 @@ const RoomManagmentState: React.FC<RoomManagmentStateProps> = ({
setRoomPresentations={setRoomPresentations}
getRoomPresentation={getRoomPresentation}
currentPresentation={currentPresentation}
isUpdate={isUpdate}
/>
) : null
}