Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Don't show quorum if there is none
Alexis Sellier committed 4 years ago
commit 36baac58bc1f4c25aad8624b640ac5172a3f342b
parent b422550035c092ecb26bed243840e40e20fa6d09
1 file changed +9 -13
modified src/base/orgs/View.svelte
@@ -226,7 +226,7 @@
              <div class="label">Treasury</div>
              <div>
                {#each tokens as token}
-
                  {` ${utils.formatBalance(token.balance)} ${token.symbol} `} 
+
                  {` ${utils.formatBalance(token.balance)} ${token.symbol} `}
                {/each}
              </div>
              <div></div>
@@ -287,19 +287,15 @@
            </div>
          {/if}
          <!-- Quorum -->
-
          <div class="label">Quorum</div>
-
          <div>
-
            {#await org.getSafe(config)}
-
              <Loading small />
-
            {:then safe}
-
              {#if safe}
+
          {#await org.getSafe(config) then safe}
+
            {#if safe}
+
              <div class="label">Quorum</div>
+
              <div>
                {safe.threshold} <span class="faded">of</span> {safe.owners.length}
-
              {:else}
-
                N/A
-
              {/if}
-
            {/await}
-
          </div>
-
          <div></div>
+
              </div>
+
              <div></div>
+
            {/if}
+
          {/await}
        </div>

        {#await org.getMembers(config)}