Skip to content

Commit

Permalink
indicate flags overriden to false
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Nov 27, 2024
1 parent 0b7619d commit f6b927d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/app/_layout/FeatureFlagConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export const FeatureFlagConfig = () => {
</button>
</div>
</div>

<div className={"text-xs"}>Overrides</div>
<div className={"flex flex-row items-center justify-between"}>
<div className={"flex flex-col"}>
Expand All @@ -111,6 +110,9 @@ export const FeatureFlagConfig = () => {
>
<Label>{label}</Label>
<Switch
className={cn(
featureFlags[key] !== undefined && "!bg-destructive",
)}
disabled={!override}
checked={featureFlags[key] ?? data?.[key]}
onCheckedChange={(value) => setFeatureFlagOverride(key, value)}
Expand Down

0 comments on commit f6b927d

Please sign in to comment.