Improve org creation copy

This commit is contained in:
Alexis Sellier
2021-07-16 18:24:19 +02:00
parent 5cf8c0d48c
commit 4b9205faa2
+14 -13
View File
@@ -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}