disable swiping when slide count is 1

This commit is contained in:
Jamal Jackson 2016-09-30 11:13:55 -04:00
parent 96dbd563d3
commit 4fc9076c7e
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ angular.module('copayApp.directives')
link: function(scope, element, attrs) {
scope.$on("$ionicSlides.sliderInitialized", function(event, data) {
scope.slider = data.slider;
if(scope.slider.slides.length == 1)
scope.slider.lockSwipes();
scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[0] : null);
});