Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Rename 'address' export to 'addressOrName'
Alexis Sellier committed 4 years ago
commit 432f50e05512a51dd10d1169309a24a9ca1beb06
parent cca312723f87c7b18d3aa954c2716b4a8bef5cdb
2 files changed +8 -8
modified src/base/orgs/Routes.svelte
@@ -13,5 +13,5 @@
</Route>

<Route path="/orgs/:address" let:params let:location>
-
  <View {config} address={params.address} action={getSearchParam("action", location)} />
+
  <View {config} addressOrName={params.address} action={getSearchParam("action", location)} />
</Route>
modified src/base/orgs/View.svelte
@@ -19,7 +19,7 @@
  import TransferOwnership from '@app/base/orgs/TransferOwnership.svelte';
  import { Profile, ProfileType } from '@app/profile';

-
  export let address: string;
+
  export let addressOrName: string;
  export let config: Config;
  export let action: string | null = null;

@@ -127,10 +127,10 @@
</style>

<svelte:head>
-
  <title>{utils.formatOrg(address, config)}</title>
+
  <title>{utils.formatOrg(addressOrName, config)}</title>
</svelte:head>

-
{#await Org.get(address, config)}
+
{#await Org.get(addressOrName, config)}
  <main class="centered">
    <Loading center />
  </main>
@@ -149,7 +149,7 @@
          <div class="info">
            <span class="title">
              <span class="bold">
-
                {profile.name ? formatName(profile.name, config) : address}
+
                {profile.name ? formatName(profile.name, config) : profile.address}
              </span>
              {#if profile.name && profile.address === org.owner}
                <span class="badge">org</span>
@@ -271,11 +271,11 @@
    <Modal subtle>
      <span slot="title">🏜️</span>
      <span slot="body">
-
        <p class="highlight"><strong>{address}</strong></p>
+
        <p class="highlight"><strong>{addressOrName}</strong></p>
        <p>Sorry, there is no Org at this address.</p>
-
        {#if utils.isAddress(address)}
+
        {#if utils.isAddress(addressOrName)}
          <p>
-
            <a href={explorerLink(address, config)} class="link" target="_blank">View in explorer</a>
+
            <a href={explorerLink(addressOrName, config)} class="link" target="_blank">View in explorer</a>
            <span class="faded">↗</span>
          </p>
        {/if}