Fix shapeshift flow go back available
This commit is contained in:
parent
b4e36e93cb
commit
51921a1a1d
1 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('shapeshiftController', function($scope, $state, $interval, profileService, walletService, popupService, lodash, $ionicNavBarDelegate) {
|
||||
angular.module('copayApp.controllers').controller('shapeshiftController', function($scope, $state, $timeout, $ionicHistory, profileService, walletService, popupService, lodash, $ionicNavBarDelegate) {
|
||||
var walletsBtc = [];
|
||||
var walletsBch = [];
|
||||
|
||||
|
|
@ -66,8 +66,14 @@ angular.module('copayApp.controllers').controller('shapeshiftController', functi
|
|||
var params = {
|
||||
thirdParty: JSON.stringify({id: 'shapeshift'})
|
||||
};
|
||||
|
||||
$state.go('tabs.home').then(function() {
|
||||
$state.transitionTo('tabs.send.origin', params);
|
||||
$ionicHistory.clearHistory();
|
||||
$state.go('tabs.send').then(function() {
|
||||
$timeout(function () {
|
||||
$state.transitionTo('tabs.send.origin', params);
|
||||
}, 60);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue