mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
set reset-password button disabled while submitting form
This commit is contained in:
parent
f073e10221
commit
69f9cc5192
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue