Skip to content

Commit

Permalink
add show obsolete button to siderbar
Browse files Browse the repository at this point in the history
  • Loading branch information
DarhkVoyd committed Nov 7, 2024
1 parent f835478 commit ba15553
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pages/tools/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export default function Sidebar({
environments: formData
.getAll('environments')
.map((value) => value as string),
};
showObsolete:
(formData.get('showObsolete') as string) === 'showObsolete'
? 'true'
: 'false',
} satisfies Transform;
postAnalytics({ eventType: 'query', eventPayload: newTransform });
return newTransform;
});
Expand Down Expand Up @@ -95,6 +99,12 @@ export default function Sidebar({
</DropdownMenu>
);
})}
<Checkbox
label='Show obsolete'
value='showObsolete'
name='showObsolete'
checked={transform['showObsolete'] === 'true'}
/>

<div className='w-full flex items-center justify-between mt-4 gap-2'>
<button
Expand Down

0 comments on commit ba15553

Please sign in to comment.