Bug fixes
This commit is contained in:
parent
39498d499b
commit
fc2dafa686
@ -16,7 +16,7 @@ body {
|
||||
|
||||
body {
|
||||
--accent-color: #256eff;
|
||||
--text-color: 20, 20, 20;
|
||||
--text-color: 34, 34, 34;
|
||||
--background-color: 240, 240, 240;
|
||||
--foreground-color: 250, 250, 250;
|
||||
--danger-color: rgb(255, 75, 75);
|
||||
@ -1370,11 +1370,6 @@ legend,
|
||||
margin: auto;
|
||||
width: min(36rem, 100%);
|
||||
}
|
||||
#smart_contract_creation_form::part(form).split-layout {
|
||||
grid-template-columns: 1fr 1.5fr;
|
||||
align-items: flex-start;
|
||||
width: min(50rem, 100%);
|
||||
}
|
||||
.payee-address-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 8rem 3rem;
|
||||
|
||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@ body {
|
||||
|
||||
body {
|
||||
--accent-color: #256eff;
|
||||
--text-color: 20, 20, 20;
|
||||
--text-color: 34, 34, 34;
|
||||
--background-color: 240, 240, 240;
|
||||
--foreground-color: 250, 250, 250;
|
||||
--danger-color: rgb(255, 75, 75);
|
||||
@ -1307,11 +1307,6 @@ legend,
|
||||
gap: 1.5rem;
|
||||
margin: auto;
|
||||
width: min(36rem, 100%);
|
||||
&.split-layout {
|
||||
grid-template-columns: 1fr 1.5fr;
|
||||
align-items: flex-start;
|
||||
width: min(50rem, 100%);
|
||||
}
|
||||
}
|
||||
.payee-address-wrapper {
|
||||
display: grid;
|
||||
|
||||
14
index.html
14
index.html
@ -352,7 +352,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<sm-input id="tx_flo_amount" type="number" placeholder="FLO amount" step="0.00000001"
|
||||
min="0.00000001" error-text="Invalid amount" animate required>
|
||||
min="0.00000001" error-text="The amount should be above 0.00000001" animate required>
|
||||
</sm-input>
|
||||
<div id="flo_data_wrapper" class="grid gap-0-5">
|
||||
<sm-textarea id="flo_data_textarea" placeholder="FLO data" rows="8" maxlength="1040"
|
||||
@ -1260,10 +1260,6 @@
|
||||
if (subpage) {
|
||||
switch (subpage) {
|
||||
case 'create':
|
||||
if (!type && !subtype)
|
||||
getRef('smart_contract_creation_form').classList.add('split-layout')
|
||||
else
|
||||
getRef('smart_contract_creation_form').classList.remove('split-layout')
|
||||
renderElem(getRef('smart_contract_creation_form'), render.contractCreationForm(type, subtype))
|
||||
showChildElement('smartcontracts', 1, { entry: slideInLeft, exit: slideOutLeft })
|
||||
break;
|
||||
@ -1291,7 +1287,7 @@
|
||||
</div>
|
||||
<div class="grid gap-0-5">
|
||||
<span class="label">Amount (${sellingToken})</span>
|
||||
<sm-input id="deposit_amount" type="number" type="number" step="0.00000001" min="0.00000001"></sm-input>
|
||||
<sm-input id="deposit_amount" type="number" step="0.00000001" min="0.00000001"></sm-input>
|
||||
</div>
|
||||
<div class="grid gap-0-5">
|
||||
<span class="label">Expiration (Time after which unspent amount will be returned)</span>
|
||||
@ -1357,7 +1353,7 @@
|
||||
`: ''}
|
||||
<div class="grid gap-0-5">
|
||||
<span id="participation_amount_label" class="label">Participation amount (${acceptingToken || tokenIdentification})</span>
|
||||
<sm-input id="participation_amount" type="number" step="0.00000001" min="0.00000001" required></sm-input>
|
||||
<sm-input id="participation_amount" type="number" step="0.00000001" min="0.00000001" error-text="The amount should be above 0.00000001" required></sm-input>
|
||||
</div>
|
||||
<div class="grid gap-0-5">
|
||||
<span class="label">FLO private key</span>
|
||||
@ -2092,7 +2088,7 @@
|
||||
</div>
|
||||
<div class="grid gap-0-5">
|
||||
<span class="label">Price (1 deposit token = ? participation token)</span>
|
||||
<sm-input id="contract_initial_price" type="number" step="0.00000001" min="0.00000001" required> </sm-input>
|
||||
<sm-input id="contract_initial_price" type="number" step="0.00000001" min="0.00000001" error-text="The price should be above 0.00000001" required> </sm-input>
|
||||
</div>
|
||||
`}
|
||||
<div class="grid gap-0-5">
|
||||
@ -3100,7 +3096,7 @@
|
||||
const contractName = document.getElementById('contract_name').value.trim().replace(/\s+/g, '-')
|
||||
const creatorPrivateKey = document.getElementById('contract_creator_private_key').value.trim()
|
||||
const creatorAddress = floCrypto.getFloID(creatorPrivateKey)
|
||||
if (floGlobals.smartContracts.some(sc => sc.creatorAddress === creatorAddress))
|
||||
if (floGlobals.smartContracts.some(sc => sc.contractAddress === creatorAddress))
|
||||
return notify(`You already have a smart contract with this address. Only one smart contract is allowed per address.`, 'error')
|
||||
let floData
|
||||
let confirmationMessage = ''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user