Fix back button from share app
This commit is contained in:
parent
63c7684259
commit
d8d565f1d3
5 changed files with 25 additions and 18 deletions
|
|
@ -54,9 +54,8 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
|
|||
$scope.feedback = {};
|
||||
|
||||
if ($scope.score) {
|
||||
$ionicNavBarDelegate.showBackButton(false);
|
||||
$ionicConfig.views.swipeBackEnabled(false);
|
||||
} else $ionicNavBarDelegate.showBackButton(true);
|
||||
}
|
||||
|
||||
switch ($scope.score) {
|
||||
case 1:
|
||||
|
|
@ -90,4 +89,12 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
|
|||
$scope.showForm = true;
|
||||
});
|
||||
|
||||
$scope.goBack = function() {
|
||||
$ionicHistory.nextViewOptions({
|
||||
disableAnimate: false,
|
||||
historyRoot: true
|
||||
});
|
||||
$ionicHistory.goBack();
|
||||
};
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue