Allow profiles to be associated in all cases

This commit is contained in:
Alexis Sellier
2021-08-09 13:55:17 +02:00
parent 1b0f70ec69
commit 830c425331
2 changed files with 21 additions and 5 deletions
+15 -2
View File
@@ -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>
+6 -3
View File
@@ -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>