mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
set reset-password button disabled while submitting form
This commit is contained in:
parent
f073e10221
commit
69f9cc5192
@ -5,7 +5,7 @@ var ResetController = Ember.Controller.extend(ValidationEngine, {
|
||||
newPassword: '',
|
||||
ne2Password: '',
|
||||
token: '',
|
||||
submitButtonDisabled: false,
|
||||
submitting: false,
|
||||
|
||||
validationType: 'reset',
|
||||
|
||||
|
@ -6,6 +6,6 @@
|
||||
<div class="password-wrap">
|
||||
{{input value=ne2Password class="password" type="password" placeholder="Confirm Password" name="ne2password" }}
|
||||
</div>
|
||||
<button class="btn btn-blue" type="submit" {{bind-attr disabled='submitButtonDisabled'}}>Reset Password</button>
|
||||
<button class="btn btn-blue" type="submit" {{bind-attr disabled='submitting'}}>Reset Password</button>
|
||||
</form>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user