goHome after close preferences or add wallet
This commit is contained in:
parent
68678613b7
commit
17f7483ec5
4 changed files with 11 additions and 8 deletions
|
|
@ -124,4 +124,8 @@ angular.module('copayApp.controllers').controller('topbarController', function($
|
|||
}
|
||||
};
|
||||
|
||||
this.goHome = function() {
|
||||
go.walletHome();
|
||||
};
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue