From 830c425331c0e4772ae3c179fff953f66851d330 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 9 Aug 2021 13:55:17 +0200 Subject: [PATCH] Allow profiles to be associated in all cases --- src/base/orgs/View.svelte | 17 +++++++++++++++-- src/ens/SetName.svelte | 9 ++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/base/orgs/View.svelte b/src/base/orgs/View.svelte index f77846f48..848bd8900 100644 --- a/src/base/orgs/View.svelte +++ b/src/base/orgs/View.svelte @@ -186,10 +186,10 @@ {/if} - + +
Profile
{#if utils.isAddressEqual(profile.address, org.address)} -
Name
{#if profile.name} {profile.name} @@ -208,6 +208,19 @@ {/if} {/await}
+ {:else} +
+ Using owner's profile. +
+
+ {#await isAuthorized(org) then authorized} + {#if authorized} + + {/if} + {/await} +
{/if} diff --git a/src/ens/SetName.svelte b/src/ens/SetName.svelte index e5119dccc..29de4ddb7 100644 --- a/src/ens/SetName.svelte +++ b/src/ens/SetName.svelte @@ -108,7 +108,7 @@ {:else if state === State.Mismatch} - + The name {name}.{config.registrar.domain} does not resolve to {entity.address}. Please update the ENS record for {name}.{config.registrar.domain} to @@ -128,8 +128,8 @@ {:else}
-
🖊️
- Reverse record +
🧣
+ Associate profile
@@ -143,6 +143,9 @@ please sign the transaction in your wallet. {:else} Set an ENS name for {formatAddress(entity.address)} + 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}