remove remaining usage of action helper (#723)
This commit is contained in:
parent
76586f165d
commit
386910bdd3
5 changed files with 9 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'recommended',
|
extends: 'recommended',
|
||||||
rules: {
|
rules: {
|
||||||
'no-action': false,
|
|
||||||
'no-implicit-this': {
|
'no-implicit-this': {
|
||||||
allow: ['scroll-first-invalid-element-into-view-port'],
|
allow: ['scroll-first-invalid-element-into-view-port'],
|
||||||
},
|
},
|
||||||
|
|
|
@ -70,4 +70,9 @@ export default class PollParticipationController extends Controller {
|
||||||
queryParams: { encryptionKey },
|
queryParams: { encryptionKey },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@action
|
||||||
|
resetSavingStatus() {
|
||||||
|
this.savingFailed = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<NextButton />
|
<NextButton />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 col-md-4 order-1 text-right">
|
<div class="col-6 col-md-4 order-1 text-right">
|
||||||
<BackButton @onClick={{action "previousPage"}} />
|
<BackButton @onClick={{this.previousPage}} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</BsForm>
|
</BsForm>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<select
|
<select
|
||||||
id={{el.id}}
|
id={{el.id}}
|
||||||
class="custom-select"
|
class="custom-select"
|
||||||
{{on "change" (action el.setValue value="target.value")}}
|
{{on "change" (pick "target.value" el.setValue)}}
|
||||||
{{autofocus}}
|
{{autofocus}}
|
||||||
>
|
>
|
||||||
{{#each this.answerTypes as |answerType|}}
|
{{#each this.answerTypes as |answerType|}}
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 col-md-4 order-1 text-right">
|
<div class="col-6 col-md-4 order-1 text-right">
|
||||||
<BackButton @onClick={{action "previousPage"}} />
|
<BackButton @onClick={{this.previousPage}} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</BsForm>
|
</BsForm>
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<BsModal
|
<BsModal
|
||||||
@onHidden={{action (mut this.savingFailed) false}}
|
@onHidden={{this.resetSavingStatus}}
|
||||||
@onSubmit={{this.save}}
|
@onSubmit={{this.save}}
|
||||||
@open={{this.savingFailed}}
|
@open={{this.savingFailed}}
|
||||||
data-test-modal="saving-failed"
|
data-test-modal="saving-failed"
|
||||||
|
|
Loading…
Reference in a new issue