Wallet/js/controllers/home.js
Gustavo Maximiliano Cortez ad87c4fc56 refactor identityService
2014-10-24 11:58:22 -03:00

17 lines
528 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager, identityService) {
controllerUtils.redirIfLogged();
$scope.retreiving = true;
identityService.check($scope);
$scope.openProfile = function(form) {
if (form && form.$invalid) {
notification.error('Error', 'Please enter the required fields');
return;
}
$scope.loading = true;
identityService.open($scope, form);
}
});