From 50434d7ab6faf3b6b53a255b045d1df60fb572e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Mon, 12 Sep 2016 16:50:31 -0300 Subject: [PATCH] code refactor --- {public/views => old}/preferencesGlobal.html | 0 {public/views/includes => old}/topbar.html | 0 public/views/preferencesHistory.html | 6 +++--- src/js/controllers/preferencesHistory.js | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) rename {public/views => old}/preferencesGlobal.html (100%) rename {public/views/includes => old}/topbar.html (100%) diff --git a/public/views/preferencesGlobal.html b/old/preferencesGlobal.html similarity index 100% rename from public/views/preferencesGlobal.html rename to old/preferencesGlobal.html diff --git a/public/views/includes/topbar.html b/old/topbar.html similarity index 100% rename from public/views/includes/topbar.html rename to old/topbar.html diff --git a/public/views/preferencesHistory.html b/public/views/preferencesHistory.html index e2d2d8d55..1118a2a99 100644 --- a/public/views/preferencesHistory.html +++ b/public/views/preferencesHistory.html @@ -4,12 +4,12 @@ - +
-
+
Export to file
-
+
Export to file preparing... diff --git a/src/js/controllers/preferencesHistory.js b/src/js/controllers/preferencesHistory.js index a44f69b36..500a8bd53 100644 --- a/src/js/controllers/preferencesHistory.js +++ b/src/js/controllers/preferencesHistory.js @@ -1,10 +1,11 @@ 'use strict'; 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')); $scope.wallet = profileService.getWallet($stateParams.walletId); $scope.csvReady = false; + $scope.isCordova = platformInfo.isCordova; $scope.csvHistory = function(cb) { var allTxs = [];