diff --git a/backend/app/session/engine.py b/backend/app/session/engine.py index 02fe754..16cafcb 100644 --- a/backend/app/session/engine.py +++ b/backend/app/session/engine.py @@ -870,8 +870,9 @@ def handle_mark_roll_call( state: SessionLiveState, event: schemas.MarkRollCallEvent, actor: SessionActor ) -> SessionLiveState: require_chair(actor) - if state.current_state != States.ROLL_CALL or state.roll_call is None: - raise InvalidProceduralMove("Cannot mark roll call right now") + #removed these lines so chair can freely change the roll call + #if state.current_state != States.ROLL_CALL or state.roll_call is None: + # raise InvalidProceduralMove("Cannot mark roll call right now") if event.payload.delegation_id not in state.delegations: raise InvalidProceduralMove("Delegation does not exist") diff --git a/frontend/src/components/session/bottom-bar-buttons/ExitButton.tsx b/frontend/src/components/session/bottom-bar-buttons/ExitButton.tsx index f74ee33..3750cef 100644 --- a/frontend/src/components/session/bottom-bar-buttons/ExitButton.tsx +++ b/frontend/src/components/session/bottom-bar-buttons/ExitButton.tsx @@ -10,7 +10,8 @@ import { AlertDialogTitle, AlertDialogTrigger, } from "@/components/ui/alert-dialog" -import { DoorOpen } from "lucide-react" +import { DoorOpen, } from "lucide-react" +import { Link } from "react-router-dom" export default function TestButton() { @@ -34,7 +35,9 @@ export default function TestButton() { Cancelar - Sair para a Dashboard + + Sair para a Dashboard + diff --git a/frontend/src/components/session/bottom-bar-buttons/MotionsButton.tsx b/frontend/src/components/session/bottom-bar-buttons/MotionsButton.tsx index 5de6b28..f9ee6c6 100644 --- a/frontend/src/components/session/bottom-bar-buttons/MotionsButton.tsx +++ b/frontend/src/components/session/bottom-bar-buttons/MotionsButton.tsx @@ -208,9 +208,9 @@ export default function TestButton() {