Simplified controllers with identityService
This commit is contained in:
parent
3c8caacc92
commit
ebe415a3d6
4 changed files with 46 additions and 26 deletions
|
|
@ -1,9 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager) {
|
||||
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager, identityService) {
|
||||
controllerUtils.redirIfLogged();
|
||||
$scope.retreiving = true;
|
||||
|
||||
$scope.retreiving = false;
|
||||
identityService.checkIdentity($scope);
|
||||
|
||||
$scope.openProfile = function(form) {
|
||||
if (form && form.$invalid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue