fix(ui): show warning about flag state on unsaved flags
This commit is contained in:
parent
2980886b31
commit
13e3bc4788
1 changed files with 1 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ function NewFFlag({ siteId, fflagId }: { siteId: string; fflagId?: string }) {
|
|||
checked={current.isActive}
|
||||
name={'persist-flag'}
|
||||
onChange={() => {
|
||||
!fflagId && !current.isActive ? toast.success("Feature flag will be enabled upon saving it.") : ""
|
||||
current.setIsEnabled(!current.isActive);
|
||||
}}
|
||||
label={current.isActive ? 'Enabled' : 'Disabled'}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue