2014-07-23 13:10:02 -07:00
|
|
|
'use strict';
|
|
|
|
|
2014-09-02 21:25:08 -07:00
|
|
|
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, walletFactory, notification, controllerUtils) {
|
2014-08-04 07:27:46 -07:00
|
|
|
|
2014-09-02 21:25:08 -07:00
|
|
|
controllerUtils.redirIfLogged();
|
|
|
|
|
|
|
|
$scope.loading = true;
|
|
|
|
|
|
|
|
walletFactory.getWallets(function(ret) {
|
2014-07-23 13:10:02 -07:00
|
|
|
$scope.loading = false;
|
2014-09-02 21:25:08 -07:00
|
|
|
$scope.hasWallets = (ret && ret.length > 0) ? true : false;
|
2014-07-23 13:10:02 -07:00
|
|
|
});
|
2014-09-02 21:25:08 -07:00
|
|
|
});
|