Skip to content

Commit

Permalink
feat: add type to vesting balances, and fix formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
sschiessl-bcp committed Oct 2, 2023
1 parent 8c40450 commit b76681b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/core/service.account.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
assetService.getAssetNameAndPrecision(value.balance.asset_id, function (returnData) {
var vesting = {
id: value.id,
type: value.balance_type,
balance: utilities.formatBalance(value.balance.amount, returnData.precision),
asset_id: value.balance.asset_id,
asset_name: returnData.symbol
Expand Down
4 changes: 3 additions & 1 deletion app/sections/accounts/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,16 @@
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th><span data-translate="Asset"></span></th>
<th class="align-right"><span data-translate="Balance"></span></th>
</tr>
</thead>
<tr data-ng-repeat="v in account.vesting">
<td><a href='#/objects/{{v.id}}/'>{{v.id}}</a></td>
<td>{{v.type}}</td>
<td>{{v.asset_name}}</td>
<td class="align-right">{{v.balance | number}}</td>
<td class="align-right">{{v.balance}}</td>
</tr>
</table>
</div>
Expand Down

0 comments on commit b76681b

Please sign in to comment.