Wallet/js/controllers/home.js
Gustavo Maximiliano Cortez ee031849b2 Fixes: url handler
2014-08-04 11:27:46 -03:00

14 lines
468 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('HomeController',
function($scope, $rootScope, $location, walletFactory, notification) {
if ($rootScope.wallet) {
$location.path('/addresses');
}
$scope.loading = false;
if ($rootScope.pendingPayment) {
notification.info('Login Required', 'Please open wallet to complete payment');
}
$scope.hasWallets = walletFactory.getWallets().length > 0 ? true : false;
});