chore: remove unused cancel method from form
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user