code refactoring
This commit is contained in:
parent
603312db4e
commit
6237ce452b
21
index.html
21
index.html
@ -158,7 +158,7 @@
|
||||
</div>
|
||||
<div class="grid gap-0-5">
|
||||
<div class="flex align-center space-between">
|
||||
<h4>Select fee</h4>
|
||||
<h4>Fees</h4>
|
||||
<strip-select id="fees_selector">
|
||||
<strip-option value="suggested" selected>Suggested</strip-option>
|
||||
<!-- <strip-option value="optimum">Optimum</strip-option> -->
|
||||
@ -395,19 +395,6 @@
|
||||
<sm-copy id="txid"></sm-copy>
|
||||
</div>
|
||||
</sm-popup>
|
||||
<template id="transaction_template">
|
||||
<li>
|
||||
<div class="wallet-request__icon"></div>
|
||||
<div class="flex align-center space-between">
|
||||
<div class="wallet-request__details"></div>
|
||||
<div class="wallet-request__amount"></div>
|
||||
</div>
|
||||
<div class="flex align-center space-between">
|
||||
<time class="wallet-request__time"></time>
|
||||
<div class="wallet-request__status flex align-center"></div>
|
||||
</div>
|
||||
</li>
|
||||
</template>
|
||||
<template id="sender_template">
|
||||
<fieldset class="sender-card card">
|
||||
<sm-input class="sender-input" placeholder="Sender address" data-btc-address
|
||||
@ -1246,7 +1233,7 @@
|
||||
getRef('convert_flo_input').value = btc_api.convert.bech2legacy(btc_bech, 0x23);
|
||||
}
|
||||
}
|
||||
const sendCardObserver = new MutationObserver(mutations => {
|
||||
const txParticipantsObserver = new MutationObserver(mutations => {
|
||||
mutations.forEach(mutation => {
|
||||
if (mutation.type === 'childList') {
|
||||
if (mutation.addedNodes.length > 0 && mutation.target.children.length > 1) {
|
||||
@ -1272,10 +1259,10 @@
|
||||
}
|
||||
})
|
||||
})
|
||||
sendCardObserver.observe(getRef('sender_container'), {
|
||||
txParticipantsObserver.observe(getRef('sender_container'), {
|
||||
childList: true
|
||||
})
|
||||
sendCardObserver.observe(getRef('receiver_container'), {
|
||||
txParticipantsObserver.observe(getRef('receiver_container'), {
|
||||
childList: true
|
||||
})
|
||||
getRef('add_sender').onclick = evt => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user