From 70e4f4608a74ecb9d704a8a0eb1bb6ad2ff0d445 Mon Sep 17 00:00:00 2001 From: olav Date: Thu, 31 Mar 2022 11:37:16 +0200 Subject: [PATCH] fix: improve toggle environment toast text (#829) --- .../FeatureOverviewEnvSwitch/FeatureOverviewEnvSwitch.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvSwitches/FeatureOverviewEnvSwitch/FeatureOverviewEnvSwitch.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvSwitches/FeatureOverviewEnvSwitch/FeatureOverviewEnvSwitch.tsx index a815d5351a..800bb21772 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvSwitches/FeatureOverviewEnvSwitch/FeatureOverviewEnvSwitch.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvSwitches/FeatureOverviewEnvSwitch/FeatureOverviewEnvSwitch.tsx @@ -35,8 +35,8 @@ const FeatureOverviewEnvSwitch = ({ await toggleFeatureEnvironmentOn(projectId, featureId, env.name); setToastData({ type: 'success', - title: 'Environment turned on', - text: 'Successfully turned environment on. Strategies are executing in this environment.', + title: 'Available in production', + text: `${featureId} is now available in ${env.name} based on its defined strategies.`, }); refetchFeature(); if (callback) { @@ -59,8 +59,8 @@ const FeatureOverviewEnvSwitch = ({ await toggleFeatureEnvironmentOff(projectId, featureId, env.name); setToastData({ type: 'success', - title: 'Environment turned off', - text: 'Successfully turned environment off. Strategies are no longer executing in this environment.', + title: 'Unavailable in production', + text: `${featureId} is unavailable in ${env.name} and its strategies will no longer have any effect.`, }); refetchFeature(); if (callback) {