copay/js/controllers/home.js

16 lines
492 B
JavaScript
Raw Normal View History

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