diff --git a/public/views/includes/wallets.html b/public/views/includes/wallets.html new file mode 100644 index 000000000..ef9a6ed72 --- /dev/null +++ b/public/views/includes/wallets.html @@ -0,0 +1,20 @@ +
+ + +
+
    +
  • + + {{wallet.name || wallet.id}} + + {{wallet.m}}-of-{{wallet.n}} + + + Incomplete + +
  • +
+
+
+
+
diff --git a/src/js/directives/directives.js b/src/js/directives/directives.js index 285df5fd4..85bf80267 100644 --- a/src/js/directives/directives.js +++ b/src/js/directives/directives.js @@ -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; + }); + } + } }); diff --git a/src/sass/main.scss b/src/sass/main.scss index 44ce5fa39..6c41c6f57 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -877,6 +877,13 @@ input[type=file] { width: inherit; } +.wallets { + height: 105px; +} + +.no-pager .swiper-pagination { + display: none; +} /* * Calculator */