Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Allow profiles to be associated in all cases
Alexis Sellier committed 4 years ago
commit 830c425331c0e4772ae3c179fff953f66851d330
parent 1b0f70ec69fe04f4973276dc271d0cd870fc5621
2 files changed +21 -5
modified src/base/orgs/View.svelte
@@ -186,10 +186,10 @@
              </button>
            {/if}
          </div>
-
          <!-- Name -->
+
          <!-- Name/Profile -->
+
          <div class="label">Profile</div>
          <!-- Only show the name if we aren't already using the name of the owner -->
          {#if utils.isAddressEqual(profile.address, org.address)}
-
            <div class="label">Name</div>
            <div>
              {#if profile.name}
                <Link to={`/registrations/${parseEnsLabel(profile.name, config)}`}>{profile.name}</Link>
@@ -208,6 +208,19 @@
                {/if}
              {/await}
            </div>
+
          {:else}
+
            <div class="subtle">
+
              Using owner's profile.
+
            </div>
+
            <div>
+
              {#await isAuthorized(org) then authorized}
+
                {#if authorized}
+
                  <button class="tiny secondary" on:click={setName}>
+
                    Change
+
                  </button>
+
                {/if}
+
              {/await}
+
            </div>
          {/if}
        </div>

modified src/ens/SetName.svelte
@@ -108,7 +108,7 @@
    </div>
  </Modal>
{:else if state === State.Mismatch}
-
  <Error floating title="🖊️" on:close>
+
  <Error floating title="🧣" on:close>
    The name <strong>{name}.{config.registrar.domain}</strong> does not
    resolve to <strong>{entity.address}</strong>. Please update
    the ENS record for {name}.{config.registrar.domain} to
@@ -128,8 +128,8 @@
{:else}
  <Modal floating>
    <div slot="title">
-
      <div>🖊️</div>
-
      <span>Reverse record</span>
+
      <div>🧣</div>
+
      <span>Associate profile</span>
    </div>

    <div slot="subtitle">
@@ -143,6 +143,9 @@
        please sign the transaction in your wallet.
      {:else}
        Set an ENS name for <strong>{formatAddress(entity.address)}</strong>
+
        to associate a profile.
+
        ENS profiles provide human-identifiable data to your org, such as a
+
        unique name, avatar and URL, and help make your org more discoverable.
      {/if}
    </div>