set reset-password button disabled while submitting form

This commit is contained in:
1Pete 2015-02-13 06:16:18 +07:00
parent f073e10221
commit 69f9cc5192
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ var ResetController = Ember.Controller.extend(ValidationEngine, {
newPassword: '',
ne2Password: '',
token: '',
submitButtonDisabled: false,
submitting: false,
validationType: 'reset',

View File

@ -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>