remove slider directive and replace sliders in paperwallet view

This commit is contained in:
Gabriel Bazán 2017-05-04 12:13:55 -03:00
commit dbc49e9ce0
5 changed files with 37 additions and 54 deletions

View file

@ -143,23 +143,4 @@ angular.module('copayApp.directives')
});
}
}
})
.directive('wallets', function($log, profileService, walletService, lodash) {
return {
restrict: 'E',
templateUrl: 'views/includes/wallets.html',
scope: {
wallets: '=wallets'
},
link: function(scope, element, attrs) {
scope.$on("$ionicSlides.sliderInitialized", function(event, data) {
scope.slider = data.slider;
scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[0] : null);
});
scope.$on("$ionicSlides.slideChangeStart", function(event, data) {
scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[data.slider.activeIndex] : null);
});
}
}
});