From 35670db919d9deb7b2e4dd64e8d6ec4ed245efc7 Mon Sep 17 00:00:00 2001 From: Youssef Khedher Date: Mon, 25 Oct 2021 11:47:15 +0100 Subject: [PATCH] edit project mismatch dialog and remove change button (#465) * edit project mismatch dialog and remove change button * add info test to solve mismatch --- .../FeatureSettingsProjectConfirm.tsx | 77 ++++++++++--------- 1 file changed, 41 insertions(+), 36 deletions(-) diff --git a/frontend/src/component/feature/FeatureView2/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx b/frontend/src/component/feature/FeatureView2/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx index c1f78224b0..1f73b0d098 100644 --- a/frontend/src/component/feature/FeatureView2/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx +++ b/frontend/src/component/feature/FeatureView2/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx @@ -54,18 +54,19 @@ const FeatureSettingsProjectConfirm = ({ }; return ( - - Are you sure you want to change the project for this feature toggle? - + Are you sure you want to change the project for this feature + toggle?
This feature toggle is 100% compatible with the new project. @@ -73,23 +74,29 @@ const FeatureSettingsProjectConfirm = ({
- } - elseShow={ +
+ } + elseShow={ + +
+

+ {' '} + This feature toggle is not compatible with the new + project destination. +

+
+
+ +
+
+
-
-

- {' '} - This feature toggle is not compatible with - the new project destination. -

-
-
- -
-
-
-

This feature toggle has strategy configuration in an environment that is not activated in the @@ -105,17 +112,15 @@ const FeatureSettingsProjectConfirm = ({ ); })} -

- You may still move the feature toggle, but the - strategies in these environment will not run - while these environments are inactive in the - target project. -

- } - /> -
+

+ In order to move this feature toggle, make sure you + enable the required environments in the target project. +

+ + } + /> ); };