mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Improve org creation copy
This commit is contained in:
+14
-13
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user