Skip to content

Commit

Permalink
fix weird behavior with aulink (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich authored May 23, 2022
1 parent db185bb commit 790619f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class AdministrativeUnitsAdministrativeUnitGoverningBodiesGoverni
@service router;

@action
reset() {
cancel() {
this.model.governingBody.rollbackAttributes();
this.router.transitionTo(
'administrative-units.administrative-unit.governing-bodies.governing-body'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
Opslaan
</AuButton>

<AuLink
{{on "click" this.reset}}
@skin="button-secondary"
<AuButton
{{on "click" this.cancel}}
@skin="secondary"
>
Annuleer
</AuLink>
</AuButton>
</AuButtonGroup>
<ReportWrongData />
</div>
Expand Down

0 comments on commit 790619f

Please sign in to comment.