copay/js/controllers/home.js

14 lines
488 B
JavaScript
Raw Normal View History

'use strict';
angular.module('copayApp.controllers').controller('HomeController',
2014-08-06 14:41:37 -07:00
function($scope, $rootScope, $location, walletFactory, notification, controllerUtils) {
controllerUtils.redirIfLogged();
2014-08-04 07:27:46 -07:00
$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;
});