Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Better org success dialog
Alexis Sellier committed 5 years ago
commit c7172935f0ff341fbcd4bc1fd3ca8f13a522c909
parent df9d15dda54d8d874556a33af62d73be1c31e2e4
2 files changed +20 -6
modified src/Modal.svelte
@@ -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}
modified src/base/orgs/CreateOrg.svelte
@@ -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">