Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Improve org creation copy
Alexis Sellier committed 4 years ago
commit 4b9205faa2007c90720ad007cbc4e62e5315d991
parent 5cf8c0d48ccf3bef62fb19ce6b5e2cf6754ea7d0
1 file changed +14 -13
modified src/base/orgs/Create.svelte
@@ -21,32 +21,33 @@
  }

  enum Governance {
-
    BDFL = "bdfl",
+
    Existing = "existing",
    Quorum = "quorum",
  }

  const orgTypes = [
-
    { label: "Single-signature",
-
      description: [
-
        `Creates an org with the specified address as the sole owner.`,
-
        `Org transactions such as anchoring are signed and executed directly from the owner's wallet.`
-
      ],
-
      value: Governance.BDFL
-
    },
    { label: "Multi-signature",
      description: [
-
        "Creates an org with a multi-signature contract as its owner, and the specified address as the first member.",
+
        "Creates an org with a multi-signature contract as its owner, and the specified account as the first member.",
        "A [Gnosis Safe](https://gnosis-safe.io) will be deployed for your org.",
        "Transactions such as anchoring have to be approved by a quorum of signers."
      ],
      value: Governance.Quorum
    },
+
    { label: "Existing owner",
+
      description: [
+
        `Creates an org with the specified account as the sole owner.`,
+
        `Org transactions such as anchoring are signed and executed from that account.`,
+
        `This option allows for using an existing contract or EOA as the owner of the org.`
+
      ],
+
      value: Governance.Existing
+
    },
  ];

  let state = State.Idle;
  let error: Err | null = null;
  let org: Org | null = null;
-
  let governance = Governance.BDFL;
+
  let governance = Governance.Quorum;

  const dispatch = createEventDispatcher();
  const createOrg = async () => {
@@ -72,7 +73,7 @@

  const onGovernanceChanged = (event: { detail: string }) => {
    switch (event.detail) {
-
      case "bdfl": governance = Governance.BDFL; break;
+
      case "existing": governance = Governance.Existing; break;
      case "quorum": governance = Governance.Quorum; break;
    }
  };
@@ -148,7 +149,7 @@

    <span slot="subtitle">
      {#if state === State.Idle}
-
        <div class="highlight">Select a governance model</div>
+
        <div class="highlight">Select how you'd like to create your org</div>
      {:else if state === State.Signing}
        <div class="highlight">Please confirm the transaction in your wallet.</div>
      {:else if state === State.Pending}
@@ -165,7 +166,7 @@
                     on:changed={onGovernanceChanged} />
          </div>

-
          <label class="input" for="address">Ethereum address</label>
+
          <label class="input" for="address">Ethereum account address</label>
          <input name="address" class="small" type="text" maxlength="42" bind:value={owner} />
        </div>
      {:else}