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:
parent
dbb62631a6
commit
70e4f4608a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user