modev wallet validation from all controllers to router
This commit is contained in:
parent
5ef607201b
commit
e5a4e3c25c
9 changed files with 17 additions and 37 deletions
|
|
@ -4,12 +4,7 @@ angular.module('copay.send').controller('SendController',
|
|||
function($scope, $rootScope, $location, Socket, controllerUtils) {
|
||||
$scope.title = 'Send';
|
||||
|
||||
if (!$rootScope.wallet || !$rootScope.wallet.id) {
|
||||
$location.path('signin');
|
||||
}
|
||||
else {
|
||||
controllerUtils.handleTransactionByAddress($scope);
|
||||
}
|
||||
controllerUtils.handleTransactionByAddress($scope);
|
||||
|
||||
$scope.sendTest = function() {
|
||||
var w = $rootScope.wallet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue