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

View File

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

View File

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