mv CSV generation from index.js to preferencesHistory.js

This commit is contained in:
Matias Alejo Garcia 2016-06-03 14:44:03 -03:00
commit 9709d6b64a
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
5 changed files with 176 additions and 158 deletions

View file

@ -6,14 +6,22 @@
<div class="content preferences" ng-controller="preferencesHistory as history">
<h4></h4>
<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 }}" translate>
<li ng-if="!index.isCordova" ng-init="history.csvHistory()">
<a style="color:#444"
ng-csv="history.csvContent"
csv-header="history.csvHeader"
ng-show="history.csvReady"
filename="Copay-{{index.alias || index.walletName}}.csv" translate>
Export to file
</a>
<a style="color:#777"
ng-show="!history.csvReady"
translate>
Export to file [preparing...]
</a>
</li>
<li ng-style="{'color':index.backgroundColor}" ng-click="history.clearTransactionHistory();" translate>
<li ng-click="history.clearTransactionHistory();" translate>
Clear cache
</li>
</ul>