mirror of https://github.com/BTCPrivate/copay.git
disable swiping when slide count is 1
This commit is contained in:
parent
96dbd563d3
commit
4fc9076c7e
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue