Skip to content

Commit

Permalink
settings.useEthFiat option added
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed May 24, 2018
1 parent 6278dd7 commit ab7a52d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"logo": "/img/explorer-logo.png",
"customCss": "green-haze.min.css",
"copyright": "2018 © Ethereum Classic.",
"useEthFiat": true,
"miners": {
"0xdf7d7e053933b5cc24372f878c90e62dadad5d42": "EtherMine",
"0xc91716199ccde49dc4fafaeb68925127ac80443f": "F2Pool",
Expand Down
1 change: 1 addition & 0 deletions public/js/controllers/AddressController.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ angular.module('BlocksApp').controller('AddressController', function($stateParam
});

// fetch ethf balance
if ($scope.settings.useEthFiat)
$http({
method: 'POST',
url: '/fiat',
Expand Down
2 changes: 1 addition & 1 deletion public/views/address.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<span class="eth-stat-text">
{{ settings.symbol }} Balance <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Note: Balance may not reflect transaction data if you have transactions resulting from Contract Internal Transactions. We are working on adding that functionality."></i>
</span><br>
<div class="margin-top-20">
<div ng-if="settings.useEthFiat" class="margin-top-20">
<span class="fade">{{ addr.ethfiat | number: 10 }}</span> <span class="eth-stat-text fade">ETH-F balance
</span> <a href="http://etherscan.io/address/{{addrHash}}" target="_blank"><i class="fa fa-external-link"></i></a>
</div>
Expand Down

0 comments on commit ab7a52d

Please sign in to comment.