goHome after close preferences or add wallet

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-24 03:22:06 -03:00
commit 17f7483ec5
4 changed files with 11 additions and 8 deletions

View file

@ -124,4 +124,8 @@ angular.module('copayApp.controllers').controller('topbarController', function($
}
};
this.goHome = function() {
go.walletHome();
};
});

View file

@ -192,7 +192,7 @@ angular
templateUrl: 'views/includes/topbar.html',
controller: function($scope) {
$scope.titleSection = 'Preferences';
$scope.closeToState = 'walletHome';
$scope.closeToHome = true;
}
}
}
@ -347,7 +347,7 @@ angular
templateUrl: 'views/includes/topbar.html',
controller: function($scope) {
$scope.titleSection = 'Add wallet';
$scope.goBackToState = 'walletHome';
$scope.closeToHome = true;
}
}
}

View file

@ -39,7 +39,6 @@ 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();