mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
Always show password reset link. Fixes #176
This commit is contained in:
parent
4b43cdf143
commit
5c66424516
2 changed files with 13 additions and 9 deletions
|
@ -11,6 +11,10 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pointer-events {
|
||||||
|
pointer-events: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.no-click {
|
.no-click {
|
||||||
pointer-events:none;
|
pointer-events:none;
|
||||||
opacity: 0.65;
|
opacity: 0.65;
|
||||||
|
|
|
@ -134,15 +134,15 @@ export class Login extends Component<any, State> {
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
{validEmail(this.state.loginForm.username_or_email) && (
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={linkEvent(this, this.handlePasswordReset)}
|
onClick={linkEvent(this, this.handlePasswordReset)}
|
||||||
className="btn p-0 btn-link d-inline-block float-right text-muted small font-weight-bold"
|
className="btn p-0 btn-link d-inline-block float-right text-muted small font-weight-bold pointer-events"
|
||||||
|
disabled={!validEmail(this.state.loginForm.username_or_email)}
|
||||||
|
title={i18n.t('no_password_reset')}
|
||||||
>
|
>
|
||||||
{i18n.t('forgot_password')}
|
{i18n.t('forgot_password')}
|
||||||
</button>
|
</button>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
|
|
Loading…
Reference in a new issue