Merge pull request #226 from jamal-jackson/feature/recieve_tab_slider

disable swiping when slide count is 1
This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-30 12:51:58 -03:00 committed by GitHub
commit ad6ed9a968

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);
});