- {current.description || 'There is no description for this feature flag.'}
+ {current.description ||
+ 'There is no description for this feature flag.'}
-
+
+
+
{current.isActive ? 'Enabled' : 'Disabled'}
+
@@ -92,28 +97,25 @@ function FlagView({ siteId, fflagId }: { siteId: string; fflagId: string }) {
: 'This flag is not persistent across authentication events.'}
- Persist flag to not reset this feature flag status after a user is identified.
+ Persist flag to not reset this feature flag status after a user is
+ identified.
-
- {
- !fflagId && !current.isActive ? toast.success("Feature flag will be enabled upon saving it.") : ""
- current.setIsEnabled(!current.isActive);
- }}
- label={current.isActive ? 'Enabled' : 'Disabled'}
- />
+
+
+ {
+ !fflagId && !current.isActive
+ ? toast.success(
+ 'Feature flag will be enabled upon saving it.'
+ )
+ : '';
+ current.setIsEnabled(!current.isActive);
+ }}
+ />
+
{current.isActive ? 'Enabled' : 'Disabled'}
+
{current.conditions.length === 0 ? null : (
- Indicate the users for whom you intend to make this flag available. Keep in mind that
- each set of conditions will be deployed separately from one another.
+ Indicate the users for whom you intend to make this flag
+ available. Keep in mind that each set of conditions will be
+ deployed separately from one another.
)}
+
Set up condition sets to restrict the rollout.
- current!.addCondition()} variant={'text-primary'}>
+ current!.addCondition()} type={'text'}>
+ Create Condition Set