Fixes: url handler

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-04 11:27:46 -03:00
commit ee031849b2
10 changed files with 56 additions and 22 deletions

View file

@ -1,7 +1,11 @@
'use strict';
angular.module('copayApp.controllers').controller('HomeController',
function($scope, $rootScope, walletFactory, notification) {
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');