This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
apps/admin-ui/src/spa/applications/[id] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,7 +419,9 @@ function RejectOptionButton({
419419 console . warn ( "no allocatedTimeSlots" , option ) ;
420420 }
421421
422- const canReject = applicationStatus === ApplicationStatusChoice . InAllocation ;
422+ const canReject =
423+ applicationStatus === ApplicationStatusChoice . InAllocation ||
424+ applicationStatus === ApplicationStatusChoice . Handled ;
423425 const isDisabled = ! canReject || option . allocatedTimeSlots ?. length > 0 ;
424426 return (
425427 < Button
@@ -518,7 +520,8 @@ function RejectAllOptionsButton({
518520 }
519521
520522 const inAllocation =
521- applicationStatus === ApplicationStatusChoice . InAllocation ;
523+ applicationStatus === ApplicationStatusChoice . InAllocation ||
524+ applicationStatus === ApplicationStatusChoice . Handled ;
522525 const isRejected = section . reservationUnitOptions . every ( ( x ) => x . rejected ) ;
523526 const hasAllocations = section . allocations != null && section . allocations > 0 ;
524527 const canReject = inAllocation && ! hasAllocations ;
@@ -783,7 +786,8 @@ function RejectApplicationButton({
783786 }
784787
785788 const isInAllocation =
786- application . status === ApplicationStatusChoice . InAllocation ;
789+ application . status === ApplicationStatusChoice . InAllocation ||
790+ application . status === ApplicationStatusChoice . Handled ;
787791 const hasBeenAllocated =
788792 application . applicationSections ?. some ( ( section ) =>
789793 section . reservationUnitOptions . some (
You can’t perform that action at this time.
0 commit comments