From 0b2ddeb8d44c4ecb0ba2e1eee318a61d1e5aa6f6 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 6 Nov 2015 15:32:10 -0300 Subject: [PATCH] rm copayer modal --- public/views/modals/copayers.html | 28 ---------------------- public/views/preferencesInformation.html | 13 ++++++++++ public/views/walletHome.html | 2 +- src/js/controllers/index.js | 9 ++++--- src/js/controllers/walletHome.js | 30 ------------------------ 5 files changed, 20 insertions(+), 62 deletions(-) delete mode 100644 public/views/modals/copayers.html diff --git a/public/views/modals/copayers.html b/public/views/modals/copayers.html deleted file mode 100644 index fac3c376a..000000000 --- a/public/views/modals/copayers.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - diff --git a/public/views/preferencesInformation.html b/public/views/preferencesInformation.html index 56eedefc4..bd67a0fc2 100644 --- a/public/views/preferencesInformation.html +++ b/public/views/preferencesInformation.html @@ -15,6 +15,7 @@ +
  • Wallet Id @@ -29,6 +30,8 @@
  • + +
  • Wallet Network @@ -52,6 +55,16 @@
  • +

    Copayers

    +
  • + + {{copayer.name}} ({{'Me'|translate}}) + + + {{copayer.name}} + +
  • +

    Extended Public Keys

  • diff --git a/public/views/walletHome.html b/public/views/walletHome.html index ebe25ccb1..4030ccbd0 100644 --- a/public/views/walletHome.html +++ b/public/views/walletHome.html @@ -118,7 +118,7 @@
    -
    +

    {{(index.alias || index.walletName)}}

    diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 61eeb9de7..9ef91e941 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -828,9 +828,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r } self.showAllHistory = function() { self.historyShowShowAll = false; - self.txHistory = self.completeHistory; $timeout(function() { $rootScope.$apply(); + self.txHistory = self.completeHistory; }); }; @@ -857,7 +857,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r self.updateHistory = function() { var fc = profileService.focusedClient; - if (!fc.isComplete()) return; + if (!fc.isComplete() || self.updatingTxHistory) return; $log.debug('Updating Transaction History'); self.txHistoryError = false; @@ -865,9 +865,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r $timeout(function() { self.updateLocalTxHistory(function(err) { - if (err) self.txHistoryError = true; self.updatingTxHistory = false; self.showWaitingSign = false; + + if (err) + self.txHistoryError = true; + $rootScope.$apply(); }); }); diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js index 60b9e42b0..ae84e4ba4 100644 --- a/src/js/controllers/walletHome.js +++ b/src/js/controllers/walletHome.js @@ -106,36 +106,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi var cancel_msg = gettextCatalog.getString('Cancel'); var confirm_msg = gettextCatalog.getString('Confirm'); - $scope.openCopayersModal = function(copayers, copayerId) { - $rootScope.modalOpened = true; - var fc = profileService.focusedClient; - - var ModalInstanceCtrl = function($scope, $modalInstance) { - $scope.copayers = copayers; - $scope.copayerId = copayerId; - $scope.color = fc.backgroundColor; - $scope.cancel = function() { - $modalInstance.dismiss('cancel'); - }; - }; - var modalInstance = $modal.open({ - templateUrl: 'views/modals/copayers.html', - windowClass: animationService.modalAnimated.slideUp, - controller: ModalInstanceCtrl, - }); - - var disableCloseModal = $rootScope.$on('closeModal', function() { - modalInstance.dismiss('cancel'); - }); - - modalInstance.result.finally(function() { - $rootScope.modalOpened = false; - disableCloseModal(); - var m = angular.element(document.getElementsByClassName('reveal-modal')); - m.addClass(animationService.modalAnimated.slideOutDown); - }); - }; - $scope.openDestinationAddressModal = function(wallets, address) { $rootScope.modalOpened = true; var fc = profileService.focusedClient;