Skip to content

Commit

Permalink
add do not purge checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Aug 11, 2022
1 parent 3ea6e59 commit 1c6f61c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const DeleteSettings = () => {
const [showConfirmation, setShowConfirmation] = useState(false)

const { data, setData, delete: deleteServer, processing, errors } = useForm({
'no_purge': false,
})

const submit = (e: FormEvent<HTMLFormElement>) => {
Expand All @@ -36,6 +37,13 @@ const DeleteSettings = () => {
Are you sure you want to delete this server? This action cannot be undone.
</p>


<Checkbox
checked={data.no_purge}
onChange={(e) => setData('no_purge', e.target.checked)}
label='Do not purge virtual machine'
/>

<Button
loading={processing}
color='red'
Expand Down

0 comments on commit 1c6f61c

Please sign in to comment.