Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Added text changes when MFA button is clicked (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
melanahammel authored Sep 26, 2018
1 parent 6236c36 commit e56b178
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions dashboard/app/components/LoginMfaForm/LoginFormMfa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
#send-code-mfa-btn {
margin-right: 12px;
}

#sent-mfa-btn {
margin-right: 12px;
padding-left: 37px;
padding-right: 37px;
}
}

.ncss-error-msg {
Expand Down
9 changes: 5 additions & 4 deletions dashboard/app/components/LoginMfaForm/LoginMfaForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ export default class LoginMfaForm extends Component {

<div id='otp-input-row'>
{shouldDisplaySendCodeButton &&
<button id='send-code-mfa-btn' type='button' className='ncss-btn-offwhite ncss-brand pt3-sm pr5-sm pb3-sm pl5-sm pt2-lg pb2-lg u-uppercase'
onClick={function () {
dispatch(triggerCodeChallenge(selectedDeviceId, stateToken))
<button id={isChallengeSent ? 'sent-mfa-btn' : 'send-code-mfa-btn'} type='button' className='ncss-btn-offwhite ncss-brand pt3-sm pr5-sm pb3-sm pl5-sm pt2-lg pb2-lg u-uppercase'

onClick={function () {
dispatch(triggerCodeChallenge(selectedDeviceId, stateToken));
}
}
disabled={isChallengeSent}
>Send Code</button>
>{isChallengeSent ? "Sent" : "Send Code"}</button>
}

<input type='text'
Expand Down

0 comments on commit e56b178

Please sign in to comment.