File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11< div class ="row page-login ">
22 < div class ="col-md-12 ">
33
4- < div class ="login-form-container ">
4+ < div class ="login-form-container ">
55
66 < div class ="panel panel-default no-margin ">
77 < div class ="panel-heading ">
Original file line number Diff line number Diff line change 11< form name ="loginForm " method ="post " novalidate ="novalidate ">
2- < br >
32 < div class ="form-group "
43 data-show-errors
54 >
3029 < div class ="form-group ">
3130 < button class ="btn btn-primary btn-block "
3231 data-ng-click ="login() "
33- data-ng-disabled ="!loginForm.$valid "
32+ data-ng-disabled ="!loginForm.$valid || busy "
3433 >
3534 Login
3635 </ button >
Original file line number Diff line number Diff line change 4343
4444 // Scope function to perform actual login request to server
4545 $scope . login = function login ( ) {
46+ $scope . busy = true ;
4647 AuthService
4748 . login ( $scope . credentials )
4849 . then (
4950 function successCallback ( ) {
51+ $ ( ".login-form-container" ) . hide ( )
5052 $state . go ( 'dashboard' ) ;
53+ $scope . busy = false ;
5154 } ,
5255 function errorCallback ( err ) {
5356 MessageService . error ( err . data . message )
57+ $scope . busy = false ;
5458 }
5559 )
5660 ;
Original file line number Diff line number Diff line change 6060 . login ( credentials )
6161 . then (
6262 function successCallback ( ) {
63+ $ ( ".login-form-container" ) . hide ( )
6364 $state . go ( 'dashboard' ) ;
6465 } ,
6566 function errorCallback ( err ) {
Original file line number Diff line number Diff line change 1414 margin : auto ;
1515 width : 350px ;
1616 max-width : 90% ;
17+ transition : all 0.5s ;
1718
1819 .panel {
1920 .panel-heading {
You can’t perform that action at this time.
0 commit comments