new wallets directive
This commit is contained in:
parent
edcbec7d96
commit
d337e73d00
3 changed files with 50 additions and 0 deletions
|
|
@ -142,4 +142,27 @@ angular.module('copayApp.directives')
|
|||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
.directive('wallets', function(profileService, lodash) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'views/includes/wallets.html',
|
||||
scope: {},
|
||||
link: function(scope, element, attrs) {
|
||||
var opts = {};
|
||||
opts.onlyComplete = attrs.onlyComplete == 'true' ? true : null;
|
||||
opts.network = attrs.network;
|
||||
opts.n = attrs.n;
|
||||
|
||||
scope.wallets = profileService.getWallets(opts);
|
||||
|
||||
scope.$on("$ionicSlides.sliderInitialized", function(event, data) {
|
||||
scope.slider = data.slider;
|
||||
});
|
||||
|
||||
scope.$on("$ionicSlides.slideChangeEnd", function(event, data) {
|
||||
scope.index = data.slider.activeIndex;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -877,6 +877,13 @@ input[type=file] {
|
|||
width: inherit;
|
||||
}
|
||||
|
||||
.wallets {
|
||||
height: 105px;
|
||||
}
|
||||
|
||||
.no-pager .swiper-pagination {
|
||||
display: none;
|
||||
}
|
||||
/*
|
||||
* Calculator
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue