reactivate swipeback when leaving a view where swipeback is not enabled
This commit is contained in:
parent
9187c72fb9
commit
91b62bb884
8 changed files with 53 additions and 9 deletions
|
|
@ -2,9 +2,16 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('backupRequestController', function($scope, $state, $stateParams, $ionicConfig, popupService, gettextCatalog) {
|
||||
|
||||
$ionicConfig.views.swipeBackEnabled(false);
|
||||
$scope.walletId = $stateParams.walletId;
|
||||
|
||||
$scope.$on("$ionicView.beforeLeave", function(event, data) {
|
||||
$ionicConfig.views.swipeBackEnabled(true);
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$ionicConfig.views.swipeBackEnabled(false);
|
||||
});
|
||||
|
||||
$scope.openPopup = function() {
|
||||
|
||||
var title = gettextCatalog.getString('Watch out!');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue