Merge pull request #249 from Bitcoin-com/wallet/task/514

Wallet/task/514
This commit is contained in:
Jean-Baptiste Dominguez 2018-08-08 22:34:44 +09:00 committed by GitHub
commit 73b18b16b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -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);
});
});
}
});