chore: remove unused cancel method from form

This commit is contained in:
Randall Morey committed 2020-10-03 14:16:00 -04:00
1 parent 3fdba6e5f9
commit c5b7d6a8e3
2 files changed
-11

No files matched your search

@@ -1,6 +1,5 @@
<Rose::Form
@onSubmit={{fn this.submit @submit}}
@cancel={{fn this.cancel @cancel}}
@disabled={{@model.isSaving}}
@error={{@model.errors.base}}
as |form|
@@ -43,14 +43,4 @@ export default class FormAccountPasswordSetPasswordIndexComponent extends Compon
next(() => this.resetPassword());
fn(password);
}
/**
* Unset password value before callback.
* @param {function} fn
*/
@action
cancel(fn) {
this.resetPassword();
fn();
}
}