Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #109 from reTHINK-project/async
Browse files Browse the repository at this point in the history
Async
  • Loading branch information
Rafael Salgueiro Felgueiras Pinto authored Nov 28, 2018
2 parents 2980a6f + a0ce8ac commit 87de2b6
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 159 deletions.
1 change: 1 addition & 0 deletions examples/wallet/Wallet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<p>- Tokens: <a class="token-value">-</a></p>
<p>- Ranking: <a class="wallet-ranking">-</a></p>
<p>- Bonus credit: <a class="bonus-credit">-</a></p>
<p>- # Accounts: <a class="accounts">-</a></p>

<button class="wallet-delete">Delete</button>

Expand Down
4 changes: 3 additions & 1 deletion examples/wallet/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ function hypertyReady(result, identity) {
console.log('Wallet new update', event);
if (event.field == 'balance') {
$('.token-value').text(event.data);

}
else if (event.field == 'ranking') {
$('.wallet-ranking').text(event.data);
}
else if (event.field == 'accounts') {
$('.accounts').text(event.data.length);
}
else if (event.field == 'bonus-credit') {
$('.bonus-credit').text(event.data);
}
Expand Down
Loading

0 comments on commit 87de2b6

Please sign in to comment.