Wallet/js/controllers/home.js

17 lines
525 B
JavaScript
Raw Normal View History

'use strict';
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager, identityService) {
2014-09-03 01:25:08 -03:00
controllerUtils.redirIfLogged();
$scope.retreiving = true;
identityService.check($scope);
2014-10-01 08:35:17 -03:00
$scope.openProfile = function(form) {
2014-10-09 18:53:31 -03:00
if (form && form.$invalid) {
notification.error('Error', 'Please enter the required fields');
return;
}
2014-10-01 08:35:17 -03:00
$scope.loading = true;
identityService.open($scope, form);
2014-10-01 08:35:17 -03:00
}
2014-09-03 01:25:08 -03:00
});