From 68678613b7e46d68dbe2fdf13ee409af11757754 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 24 Apr 2015 02:46:29 -0300 Subject: [PATCH 1/2] Clean pendingForUs when change wallet. Fix root.go --- src/js/controllers/index.js | 1 + src/js/services/go.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 5fbce2b62..530050112 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -74,6 +74,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r self.notAuthorized = false; self.txHistory = []; self.txHistoryPaging = false; + self.pendingTxProposalsCountForUs = null; $timeout(function() { self.hasProfile = true; diff --git a/src/js/services/go.js b/src/js/services/go.js index 71482e8c9..8b1d1de47 100644 --- a/src/js/services/go.js +++ b/src/js/services/go.js @@ -39,6 +39,7 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope, root.path = function(path, cb) { $state.transitionTo(path) .then(function() { + $rootScope.$emit('Local/SetTab', path); if (cb) return cb(); }); hideSidebars(); From 17f7483ec5062af24364a80d73d5494b46702ba4 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 24 Apr 2015 03:22:06 -0300 Subject: [PATCH 2/2] goHome after close preferences or add wallet --- public/views/includes/topbar.html | 10 +++++----- src/js/controllers/topbar.js | 4 ++++ src/js/routes.js | 4 ++-- src/js/services/go.js | 1 - 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/public/views/includes/topbar.html b/public/views/includes/topbar.html index fe2ca0d4f..9ccc3cdaa 100644 --- a/public/views/includes/topbar.html +++ b/public/views/includes/topbar.html @@ -1,6 +1,6 @@