diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlan.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlan.tsx index 8fadc39b70e8..ecb6a50c5b10 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlan.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlan.tsx @@ -185,6 +185,7 @@ export const ReleasePlan = ({ open={removeOpen} setOpen={setRemoveOpen} onConfirm={onRemoveConfirm} + environmentActive={!environmentIsDisabled} /> ); diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanRemoveDialog.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanRemoveDialog.tsx index 6a87a859e988..d3bded871a02 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanRemoveDialog.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanRemoveDialog.tsx @@ -8,6 +8,7 @@ interface IReleasePlanRemoveDialogProps { open: boolean; setOpen: React.Dispatch>; onConfirm: () => void; + environmentActive: boolean; } export const ReleasePlanRemoveDialog = ({ @@ -15,6 +16,7 @@ export const ReleasePlanRemoveDialog = ({ open, setOpen, onConfirm, + environmentActive, }: IReleasePlanRemoveDialogProps) => ( setOpen(false)} > This release plan currently has one active milestone.