diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/settings/deleteModal.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/settings/deleteModal.svelte index 589f01e39..a178284d1 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/settings/deleteModal.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/settings/deleteModal.svelte @@ -2,15 +2,18 @@ import { goto } from '$app/navigation'; import { base } from '$app/paths'; import { page } from '$app/stores'; - import { Submit, trackEvent, trackError } from '$lib/actions/analytics'; + import { Submit, trackError, trackEvent } from '$lib/actions/analytics'; import { Modal } from '$lib/components'; - import { Button } from '$lib/elements/forms'; + import { Button, InputCheckbox } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdk } from '$lib/stores/sdk'; + import { FormList } from '$lib/elements/forms/index.js'; export let showDelete = false; const functionId = $page.params.function; + let confirmedDeletion = false; + const handleSubmit = async () => { try { await sdk.forProject.functions.delete(functionId); @@ -38,12 +41,23 @@ icon="exclamation" state="warning" headerDivider={false}> -
- Are you sure you want to delete this function and all associated deployments from your - project? -
++ Are you sure you want to delete this function and all associated deployments from your + project? +
+ +- Are you sure you want to delete this site and all associated deployments from your - project? -
++ Are you sure you want to delete this site and all associated deployments from your + project? +
+ +