feat: add confirmation modal on exit

This commit is contained in:
Arman
2023-12-28 18:28:30 +01:00
parent 99416057e3
commit 1257cdd455
3 changed files with 12 additions and 3 deletions
+8 -1
View File
@@ -8,10 +8,17 @@
function handleSubmit() {
dispatch('exit');
show = false;
}
</script>
<Modal title="Exit Process" bind:show onSubmit={handleSubmit} icon="exclamation" state="warning">
<Modal
title="Exit Process"
bind:show
onSubmit={handleSubmit}
icon="exclamation"
state="warning"
headerDivider={false}>
<p>
Are you sure you want to exit from <slot />? All data will be deleted. This action is
irreversible.
@@ -204,4 +204,5 @@
title="Change plan"
steps={$changeTierSteps}
finalAction={$changeOrganizationFinalAction}
on:exit={onFinish} />
on:exit={onFinish}
confirmExit />
@@ -160,4 +160,5 @@
title="Create organization"
steps={$createOrgSteps}
finalAction={$createOrganizationFinalAction}
on:exit={onFinish} />
on:exit={onFinish}
confirmExit />