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

@ -125,12 +125,12 @@
</span>
</li>
<li class="p10 oh" ng-show="comment">
<li class="p10 oh" ng-show="btx.note">
<span class="text-gray" translate>Comment</span>
<span class="right enable_text_select">{{comment}}</span><br>
<span class="right enable_text_select">{{btx.note.body}}</span><br>
<span class="right text-italic text-gray size-12 m10t">
<span>{{editedBy}}</span>
<time>{{createdOn * 1000 | amTimeAgo}}</time></span>
<span>{{btx.note.editedByName}}</span>
<time>{{btx.note.editedOn * 1000 | amTimeAgo}}</time></span>
</span>
</li>
</ul>

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>