Skip to content

Commit

Permalink
Use warning for dialog, and added todo to use authz
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed May 6, 2024
1 parent 6eb5777 commit 253ab34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/api-server/api_server/routes/building_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async def get_previous_fire_alarm_trigger():
async def reset_fire_alarm_trigger(
logger: LoggerAdapter = Depends(get_logger),
):
# TODO: enforce with authz
logger.info("Fire alarm trigger reset requested")
rmf_gateway().reset_fire_alarm_trigger()
fire_alarm_trigger_state = FireAlarmTriggerState(
Expand Down
6 changes: 3 additions & 3 deletions packages/dashboard/src/components/appbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ export const AppBar = React.memo(({ extraToolbarItems }: AppBarProps): React.Rea
onClose={() => setOpenFireAlarmTriggerResetDialog(false)}
onSubmit={handleResetFireAlarmTrigger}
>
<Typography>
Please ensure that all other systems are back online and that it is safe to resume robot
operations.
<Typography color="warning.main">
Warning: Please ensure that all other systems are back online and that it is safe to
resume robot operations.
</Typography>
</ConfirmationDialog>
)}
Expand Down

0 comments on commit 253ab34

Please sign in to comment.