mirror of https://github.com/BTCPrivate/copay.git
14 lines
488 B
JavaScript
14 lines
488 B
JavaScript
'use strict';
|
|
|
|
angular.module('copayApp.controllers').controller('HomeController',
|
|
function($scope, $rootScope, $location, walletFactory, notification, controllerUtils) {
|
|
|
|
controllerUtils.redirIfLogged();
|
|
|
|
$scope.loading = false;
|
|
if ($rootScope.pendingPayment) {
|
|
notification.info('Login Required', 'Please open wallet to complete payment');
|
|
}
|
|
$scope.hasWallets = (walletFactory.getWallets() && walletFactory.getWallets().length > 0) ? true : false;
|
|
});
|