Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Org navigation goes straight to 'create' dialog
Alexis Sellier committed 5 years ago
commit 343a540660f013a3bcc793ace3301e445305e52a
parent 0b4e009d8981dafd74ba492db237b3916a4af03d
1 file changed +3 -11
modified src/base/orgs/Index.svelte
@@ -1,23 +1,15 @@
<script lang="typescript">
  import type { SvelteComponent } from 'svelte';
+
  import { navigate } from 'svelte-routing';
  import { session } from '@app/session';
  import Create from '@app/base/orgs/Create.svelte';
  import type { Config } from '@app/config';

  export let config: Config;

-
  let modal: typeof SvelteComponent | null = null;
+
  let modal: typeof SvelteComponent = Create;

  $: owner = $session && $session.address;
</script>

-
<style>
-
</style>
-

-
<main>
-
  <button on:click={() => modal = Create} disabled={!owner} class="secondary">
-
    Create an Org
-
  </button>
-
</main>
-

-
<svelte:component this={modal} {owner} {config} on:close={() => modal = null} />
+
<svelte:component this={modal} {owner} {config} on:close={() => navigate('/')} />