Skip to content

Commit

Permalink
feat: be sure about leaving an organization
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Jan 16, 2024
1 parent f054a1e commit 00f486b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/routes/(app)/org/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
});
}
}
let confirmedOrgName = '';
</script>

{#if $page.state.showingModal == 'inviteUser'}
Expand Down Expand Up @@ -105,7 +107,13 @@
<h2>Hold Up!</h2>
<p>Are you sure you want to leave this organization?</p>
<p>All your data and permissions will be lost forever</p>
<Button value="Leave {data.org.name}" />
<p>Type the name of the organization, <br/><b>{data.org.name}</b>, to confirm</p>
<div class="formItem">
<Input bg="white" bind:value={confirmedOrgName} label="Organization Name"></Input>
</div>
<div class="formItem">
<Button disabled={confirmedOrgName != data.org.name} value="Leave {data.org.name}" />
</div>
</form>
</Modal>
{/if}
Expand Down

0 comments on commit 00f486b

Please sign in to comment.