We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601e009 commit 38138aaCopy full SHA for 38138aa
1 file changed
apps/webapp/app/routes/admin.feature-flags.tsx
@@ -254,6 +254,14 @@ export default function AdminFeatureFlagsRoute() {
254
{saveError && <Callout variant="error">{saveError}</Callout>}
255
256
<div className="flex justify-end gap-2">
257
+ {isDirty && (
258
+ <Button
259
+ variant="tertiary/small"
260
+ onClick={() => setValues({ ...initialValues })}
261
+ >
262
+ Discard
263
+ </Button>
264
+ )}
265
<Button
266
variant="primary/small"
267
onClick={() => setConfirmOpen(true)}
0 commit comments