Better org success dialog

This commit is contained in:
Alexis Sellier
2021-05-04 14:47:01 +02:00
parent df9d15dda5
commit c7172935f0
2 changed files with 20 additions and 6 deletions
+5
View File
@@ -46,6 +46,11 @@
<slot name="title"></slot>
{/if}
</div>
<div class="modal-subtitle">
{#if !error}
<slot name="subtitle"></slot>
{/if}
</div>
<div class="modal-body">
{#if error}
{#if error === Object(error) && error.message}
+15 -6
View File
@@ -43,18 +43,27 @@
{#if !org}
Create an Org
{:else}
Success
🎉
{/if}
</span>
<span slot="subtitle">
{#if org}
<strong>Your org was successfully created.</strong>
{/if}
</span>
<span slot="body">
<table>
<tr><td class="label">Member</td><td>{owner}</td></tr>
{#if org}
{#if org}
<table>
<tr><td class="label">Address</td><td>{org.address}</td></tr>
<tr><td class="label">Safe</td><td>{org.safe}</td></tr>
{/if}
</table>
</table>
{:else}
<table>
<tr><td class="label">Member</td><td>{owner}</td></tr>
</table>
{/if}
</span>
<span slot="actions">