0.2.4
style (user): change balance refresh option to show status of refreshing
This commit is contained in:
parent
ec973aafbf
commit
349d08ed3b
11
index.html
11
index.html
@ -741,9 +741,9 @@
|
|||||||
<div class="user-panel">
|
<div class="user-panel">
|
||||||
<div class="flex align-center space-between">
|
<div class="flex align-center space-between">
|
||||||
<h4>My Balances</h4>
|
<h4>My Balances</h4>
|
||||||
<button onclick="refreshBalance(this)" class="refresh-balance action expand" type="submit">
|
<button onclick="refreshBalance(this)" class="action expand" type="submit">
|
||||||
<h4 class="primary-btn expand">
|
<h4 class="primary-btn expand">
|
||||||
Refresh Balance
|
Refresh
|
||||||
</h4>
|
</h4>
|
||||||
<svg viewBox="0 0 73 73" class="loader">
|
<svg viewBox="0 0 73 73" class="loader">
|
||||||
<path
|
<path
|
||||||
@ -1000,9 +1000,9 @@
|
|||||||
<div class="user-panel">
|
<div class="user-panel">
|
||||||
<div class="flex align-center space-between">
|
<div class="flex align-center space-between">
|
||||||
<h4>My Balances</h4>
|
<h4>My Balances</h4>
|
||||||
<button onclick="refreshBalance(this)" class="refresh-balance action expand" type="submit">
|
<button onclick="refreshBalance(this)" class="action expand" type="submit">
|
||||||
<h4 class="primary-btn expand">
|
<h4 class="primary-btn expand">
|
||||||
Refresh Balance
|
Refresh
|
||||||
</h4>
|
</h4>
|
||||||
<svg viewBox="0 0 73 73" class="loader">
|
<svg viewBox="0 0 73 73" class="loader">
|
||||||
<path
|
<path
|
||||||
@ -2027,8 +2027,7 @@
|
|||||||
if (option === 'start') {
|
if (option === 'start') {
|
||||||
btn.classList.add('start-loading')
|
btn.classList.add('start-loading')
|
||||||
btn.children[1].classList.add('animate-loader')
|
btn.children[1].classList.add('animate-loader')
|
||||||
if (btn.classList.contains('refresh-balance')) return
|
btn.children[0].textContent = btn.children[0].textContent.trim() + 'ing'
|
||||||
btn.children[0].textContent = btn.children[0].textContent.trim() + 'ing'
|
|
||||||
} else {
|
} else {
|
||||||
if (btn.children[0].textContent.indexOf('ing'))
|
if (btn.children[0].textContent.indexOf('ing'))
|
||||||
btn.children[0].textContent = btn.children[0].textContent.trim().replace('ing', '')
|
btn.children[0].textContent = btn.children[0].textContent.trim().replace('ing', '')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user