mirror of https://github.com/BTCPrivate/copay.git
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
'use strict';
|
|
|
|
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, walletFactory, notification, controllerUtils) {
|
|
|
|
controllerUtils.redirIfLogged();
|
|
|
|
$scope.loading = true;
|
|
|
|
walletFactory.getWallets(function(ret) {
|
|
$scope.loading = false;
|
|
$scope.hasWallets = (ret && ret.length > 0) ? true : false;
|
|
});
|
|
});
|