From d20af9e5de15d961ddcfaa90fa612f5652eed996 Mon Sep 17 00:00:00 2001 From: David Leek Date: Wed, 15 Jan 2025 15:29:49 +0100 Subject: [PATCH] chore: make remove release plan warning conditional on env. enabled (#9103) --- .../FeatureView/FeatureOverview/ReleasePlan/ReleasePlan.tsx | 1 + .../FeatureOverview/ReleasePlan/ReleasePlanRemoveDialog.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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.