2014-07-23 17:10:02 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2014-09-26 05:00:43 -03:00
|
|
|
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;
|
2014-09-26 05:00:43 -03:00
|
|
|
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-07-23 17:10:02 -03:00
|
|
|
});
|
2014-09-03 01:25:08 -03:00
|
|
|
});
|