Skip to content

Commit

Permalink
Disable cancel button if there is a latching failure
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Apr 30, 2024
1 parent a37bad9 commit b8068a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dashboard/src/components/delivery-alert-store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ const DeliveryWarningDialog = React.memo((props: DeliveryWarningDialogProps) =>
</DialogContent>
<DialogActions>
{(newTaskState && newTaskState.status && newTaskState.status === 'canceled') ||
deliveryAlert.category === DeliveryAlertCategory.Cancelled ? (
deliveryAlert.category === DeliveryAlertCategory.Cancelled ||
(deliveryAlert.message && deliveryAlert.message.includes(' latch ')) ? (
<Button
size="small"
variant="contained"
Expand Down

0 comments on commit b8068a8

Please sign in to comment.