mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add confirmation modal on exit
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user