From 13e3bc4788ce1b103899e2bff63b888c308253be Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 23 Jun 2023 12:14:17 +0200 Subject: [PATCH] fix(ui): show warning about flag state on unsaved flags --- frontend/app/components/FFlags/NewFFlag/NewFFlag.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/components/FFlags/NewFFlag/NewFFlag.tsx b/frontend/app/components/FFlags/NewFFlag/NewFFlag.tsx index 35e296dd2..aad7f9691 100644 --- a/frontend/app/components/FFlags/NewFFlag/NewFFlag.tsx +++ b/frontend/app/components/FFlags/NewFFlag/NewFFlag.tsx @@ -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'}