Wallet/src/js/controllers/proposals.js
2016-09-22 01:47:39 -03:00

24 lines
600 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('proposalsController',
function($timeout, $scope, profileService, $log, txpModalService) {
$scope.fetchingProposals = true;
$scope.$on("$ionicView.enter", function(event, data){
profileService.getTxps(50, function(err, txps) {
$scope.fetchingProposals = false;
if (err) {
$log.error(err);
return;
}
$scope.txps = txps;
$timeout(function() {
$scope.$apply();
}, 1);
});
});
$scope.openTxpModal = txpModalService.open;
});