1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: improve toggle environment toast text (#829)

This commit is contained in:
olav 2022-03-31 11:37:16 +02:00 committed by GitHub
parent dbb62631a6
commit 70e4f4608a

View File

@ -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) {