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);
|
await toggleFeatureEnvironmentOn(projectId, featureId, env.name);
|
||||||
setToastData({
|
setToastData({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
title: 'Environment turned on',
|
title: 'Available in production',
|
||||||
text: 'Successfully turned environment on. Strategies are executing in this environment.',
|
text: `${featureId} is now available in ${env.name} based on its defined strategies.`,
|
||||||
});
|
});
|
||||||
refetchFeature();
|
refetchFeature();
|
||||||
if (callback) {
|
if (callback) {
|
||||||
@ -59,8 +59,8 @@ const FeatureOverviewEnvSwitch = ({
|
|||||||
await toggleFeatureEnvironmentOff(projectId, featureId, env.name);
|
await toggleFeatureEnvironmentOff(projectId, featureId, env.name);
|
||||||
setToastData({
|
setToastData({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
title: 'Environment turned off',
|
title: 'Unavailable in production',
|
||||||
text: 'Successfully turned environment off. Strategies are no longer executing in this environment.',
|
text: `${featureId} is unavailable in ${env.name} and its strategies will no longer have any effect.`,
|
||||||
});
|
});
|
||||||
refetchFeature();
|
refetchFeature();
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user