commit
058f790ebd
4 changed files with 5 additions and 4 deletions
|
|
@ -4,12 +4,12 @@
|
||||||
<i class="icon ion-ios-arrow-thin-left"></i>
|
<i class="icon ion-ios-arrow-thin-left"></i>
|
||||||
</ion-nav-back-button>
|
</ion-nav-back-button>
|
||||||
</ion-nav-bar>
|
</ion-nav-bar>
|
||||||
<ion-content ng-controller="preferencesHistory" ng-init="index.updatingTxHistory ? null : csvHistory()">
|
<ion-content ng-controller="preferencesHistory" ng-init="csvHistory()">
|
||||||
<div class="item item-divider"></div>
|
<div class="item item-divider"></div>
|
||||||
<div class="item" ng-show="csvReady && !index.isCordova" ng-csv="csvContent" csv-header="csvHeader" filename="Copay-{{wallet.name}}.csv">
|
<div class="item" ng-show="csvReady && !isCordova" ng-csv="csvContent" csv-header="csvHeader" filename="Copay-{{wallet.name}}.csv">
|
||||||
<span translate>Export to file</span>
|
<span translate>Export to file</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item" ng-show="!csvReady && !index.isCordova">
|
<div class="item" ng-show="!csvReady && !isCordova">
|
||||||
<span translate>Export to file</span>
|
<span translate>Export to file</span>
|
||||||
<span class="item-note" translate>
|
<span class="item-note" translate>
|
||||||
preparing...
|
preparing...
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('preferencesHistory',
|
angular.module('copayApp.controllers').controller('preferencesHistory',
|
||||||
function($scope, $log, $stateParams, $timeout, $ionicNavBarDelegate, gettextCatalog, storageService, $state, $ionicHistory, profileService, lodash) {
|
function($scope, $log, $stateParams, $timeout, $state, $ionicHistory, $ionicNavBarDelegate, gettextCatalog, storageService, platformInfo, profileService, lodash) {
|
||||||
$ionicNavBarDelegate.title(gettextCatalog.getString('Transaction History'));
|
$ionicNavBarDelegate.title(gettextCatalog.getString('Transaction History'));
|
||||||
$scope.wallet = profileService.getWallet($stateParams.walletId);
|
$scope.wallet = profileService.getWallet($stateParams.walletId);
|
||||||
$scope.csvReady = false;
|
$scope.csvReady = false;
|
||||||
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
|
|
||||||
$scope.csvHistory = function(cb) {
|
$scope.csvHistory = function(cb) {
|
||||||
var allTxs = [];
|
var allTxs = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue