File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ <h3 class="heading-tertiary">Login</h3>
8
8
< span class ="tab__header " data-ng-click ="setTab('remind') "> Remind</ span >
9
9
</ div >
10
10
< div class ="tabs__body ">
11
- < div class ="tab__body " data-ng-if ="tab.selected === 'login' ">
11
+ < div class ="tab__body " data-ng-if ="currentTab === 'login' ">
12
12
< form id ="loginForm " data-ng-submit ="$parent.login() ">
13
13
< div class ="form-group ">
14
14
< label for ="email "> E-Mail:</ label >
@@ -22,7 +22,7 @@ <h3 class="heading-tertiary">Login</h3>
22
22
< div data-ng-if ="$parent.errorActive "> This account is not activated.</ div >
23
23
< div data-ng-if ="$parent.errorPass "> No account associated with this email or wrong password.</ div >
24
24
</ div >
25
- < div class ="tab__body " data-ng-if ="tab.selected === 'remind' ">
25
+ < div class ="tab__body " data-ng-if ="currentTab === 'remind' ">
26
26
< form id ="remindForm " data-ng-submit ="$parent.remind() ">
27
27
< div class ="form-group ">
28
28
< label for ="emailRemind "> E-Mail:</ label >
@@ -33,7 +33,8 @@ <h3 class="heading-tertiary">Login</h3>
33
33
</ div >
34
34
</ div >
35
35
< div class ="modal__footer ">
36
- < button type ="submit " class ="button " form ="loginForm "> Login</ button >
36
+ < button type ="submit " class ="button " form ="loginForm " data-ng-if ="currentTab === 'login' "> Login</ button >
37
+ < button type ="submit " class ="button " form ="remindForm " data-ng-if ="currentTab === 'remind' "> Remind</ button >
37
38
< button type ="button " class ="button " data-ng-click ="hideModal() "> Close</ button >
38
39
</ div >
39
40
</ div >
Original file line number Diff line number Diff line change 18
18
$scope . errorPass = false ;
19
19
$scope . errorActive = false ;
20
20
$scope . errorRemind = false ;
21
+ $scope . currentTab = '' ;
21
22
22
23
$scope . hideModal = ( ) => stateService . set ( 'modalLogin' , false ) ;
24
+ $scope . setTab = ( tab ) => { $scope . currentTab = tab } ;
23
25
$scope . login = async ( ) => {
24
26
const params = { email : $scope . email , password : $scope . password } ;
25
27
const response = await authService . login ( params ) ;
You can’t perform that action at this time.
0 commit comments