Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix some "back" or "close" actions
Alexis Sellier committed 4 years ago
commit 59fc3ba356d2a6d7c88b99319bb607618a23966f
parent e865a2a4369ce3b7d2644cbb73f514adb0245a81
3 files changed +3 -3
modified src/base/orgs/Create.svelte
@@ -128,7 +128,7 @@
        </button>

        <button on:click={() => dispatch('close')} class="text">
-
          Cancel
+
          Back
        </button>
      {/if}
    </span>
modified src/base/orgs/Index.svelte
@@ -13,7 +13,7 @@
</script>

{#if owner}
-
  <svelte:component this={modal} {owner} {config} on:close={() => navigate('/')} />
+
  <svelte:component this={modal} {owner} {config} on:close={() => window.history.back()} />
{:else}
  <Error on:close={() => window.history.back()}>
    Not connected.
modified src/base/orgs/View.svelte
@@ -24,7 +24,7 @@
  let registration: Registration | null = null;
  let name: string | null = null;

-
  const back = () => navigate("/orgs");
+
  const back = () => window.history.back();

  onMount(async () => {
    name = await config.provider.lookupAddress(address);