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,7 +2,14 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('notificationsController', function($scope, $state, $timeout, $stateParams, $ionicConfig, profileService, configService, $interval) {
|
||||
|
||||
$ionicConfig.views.swipeBackEnabled(false);
|
||||
$scope.$on("$ionicView.beforeEnter", function() {
|
||||
$ionicConfig.views.swipeBackEnabled(false);
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.beforeLeave", function() {
|
||||
$ionicConfig.views.swipeBackEnabled(true);
|
||||
});
|
||||
|
||||
$scope.walletId = $stateParams.walletId;
|
||||
|
||||
$scope.allowNotif = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue