update refresh button
refresh button also refreshed account details
This commit is contained in:
parent
9443ac5d51
commit
8d4a2e79b8
@ -209,11 +209,13 @@
|
|||||||
}).catch(error => console.error(error))
|
}).catch(error => console.error(error))
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh() {
|
function refresh(init = false) {
|
||||||
console.info("refresh");
|
console.info("refresh");
|
||||||
list_buy();
|
list_buy();
|
||||||
list_sell();
|
list_sell();
|
||||||
list_txns();
|
list_txns();
|
||||||
|
if (init || document.getElementById('user-container').style.display === "block")
|
||||||
|
account();
|
||||||
}
|
}
|
||||||
|
|
||||||
function account() {
|
function account() {
|
||||||
@ -342,10 +344,7 @@
|
|||||||
.catch(error => console.error(o, error)))
|
.catch(error => console.error(o, error)))
|
||||||
};
|
};
|
||||||
|
|
||||||
(function init() {
|
refresh(true);
|
||||||
account();
|
|
||||||
refresh();
|
|
||||||
})();
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user