Decrease in call to feelevels

This commit is contained in:
Gustavo Maximiliano Cortez 2016-02-19 14:46:52 -05:00
commit 4b1ca3bf5a
3 changed files with 16 additions and 7 deletions

View file

@ -3,7 +3,7 @@
ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Bitcoin Network Fee Policy'; goBackToState = 'preferencesGlobal'; noColor = true">
</div>
<div class="content preferences" ng-controller="preferencesFeeController as prefFee">
<div class="content preferences" ng-controller="preferencesFeeController as prefFee" ng-init="index.setFeesOpts()">
<h4></h4>
<ul class="no-bullet m0">
<li ng-repeat="fee in (index.network == 'livenet' ? index.feeLevels.livenet : index.feeLevels.testnet)"

View file

@ -5,13 +5,15 @@
</div>
<div class="content preferences" ng-controller="preferencesHistory as history">
<h4></h4>
<ul class="no-bullet m0" ng-style="{'color':index.backgroundColor}">
<ul class="no-bullet m0">
<li ng-if="!index.isCordova" ng-init="index.csvHistory()">
<a ng-style="{'color':index.backgroundColor}" ng-csv="index.csvContent" csv-header="index.csvHeader" filename="{{ index.csvFilename }}">
<span translate>Export to file</span>
<a ng-style="{'color':index.backgroundColor}" ng-csv="index.csvContent"
csv-header="index.csvHeader"
filename="{{index.csvFilename }}" translate>
Export to file
</a>
</li>
<li ng-click="history.clearTransactionHistory();" translate>
<li ng-style="{'color':index.backgroundColor}" ng-click="history.clearTransactionHistory();" translate>
Clear cache
</li>
</ul>