UI bug fixes
This commit is contained in:
parent
debbf25396
commit
c63d3dc77c
58
index.html
58
index.html
@ -412,31 +412,49 @@
|
|||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
renderElem(
|
if (Object.keys(contractParticipants).length)
|
||||||
document.getElementById('participant_container'),
|
renderElem(
|
||||||
html`${Object.keys(contractParticipants).map(participant => render.contractChoiceCard(contractParticipants[participant]))}`
|
document.getElementById('participant_container'),
|
||||||
)
|
html`${Object.keys(contractParticipants).map(participant => render.contractChoiceCard(contractParticipants[participant]))}`
|
||||||
|
)
|
||||||
|
else
|
||||||
|
renderElem(
|
||||||
|
document.getElementById('participant_container'),
|
||||||
|
html`<div>No participants found</div>`
|
||||||
|
)
|
||||||
break;
|
break;
|
||||||
case 'continuos-event':
|
case 'continuos-event':
|
||||||
switch (contractSubtype) {
|
switch (contractSubtype) {
|
||||||
case 'tokenswap':
|
case 'tokenswap':
|
||||||
renderElem(
|
if (Object.keys(contractParticipants).length)
|
||||||
document.getElementById('participant_container'),
|
renderElem(
|
||||||
html`${Object.keys(contractParticipants)
|
document.getElementById('participant_container'),
|
||||||
.map(participant => render.participantCard({
|
html`${Object.keys(contractParticipants)
|
||||||
|
.map(participant => render.participantCard({
|
||||||
|
accepting_token: accepting_token,
|
||||||
|
selling_token: selling_token,
|
||||||
|
...contractParticipants[participant]
|
||||||
|
}))
|
||||||
|
}`
|
||||||
|
)
|
||||||
|
else
|
||||||
|
renderElem(
|
||||||
|
document.getElementById('participant_container'),
|
||||||
|
html`<div>No participants found</div>`
|
||||||
|
)
|
||||||
|
if (contractDeposits.length)
|
||||||
|
renderElem(
|
||||||
|
document.getElementById('deposits_container'),
|
||||||
|
html`${contractDeposits.map(deposit => render.depositCard({
|
||||||
|
...deposit,
|
||||||
accepting_token: accepting_token,
|
accepting_token: accepting_token,
|
||||||
selling_token: selling_token,
|
}))}`
|
||||||
...contractParticipants[participant]
|
)
|
||||||
}))
|
else
|
||||||
}`
|
renderElem(
|
||||||
)
|
document.getElementById('deposits_container'),
|
||||||
renderElem(
|
html`<div>No deposits found</div>`
|
||||||
document.getElementById('deposits_container'),
|
)
|
||||||
html`${contractDeposits.map(deposit => render.depositCard({
|
|
||||||
...deposit,
|
|
||||||
accepting_token: accepting_token,
|
|
||||||
}))}`
|
|
||||||
)
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user