Wallet/js/controllers/home.js

12 lines
378 B
JavaScript
Raw Normal View History

'use strict';
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, identity, notification, controllerUtils) {
2014-08-04 11:27:46 -03:00
2014-09-03 01:25:08 -03:00
controllerUtils.redirIfLogged();
2014-09-04 16:23:37 -03:00
$scope.retreiving = true;
identity.getWallets(function(err,ret) {
2014-09-04 16:23:37 -03:00
$scope.retreiving = false;
2014-09-03 01:25:08 -03:00
$scope.hasWallets = (ret && ret.length > 0) ? true : false;
});
2014-09-03 01:25:08 -03:00
});