Updated ember action usage

This commit is contained in:
Rishabh 2022-11-17 17:20:05 +05:30
parent 18c54c40c2
commit 31b4d34b90
2 changed files with 5 additions and 4 deletions

View File

@ -1010,3 +1010,4 @@ remove|ember-template-lint|no-action|50|35|50|35|7432725bd18c48f69bf22dc9487d14d
remove|ember-template-lint|no-passed-in-event-handlers|33|28|33|28|5b371baf419f247953b91b626611cb831c524af3|1662681600000|1673053200000|1678237200000|app/templates/signin.hbs
remove|ember-template-lint|no-passed-in-event-handlers|50|28|50|28|40caf07c7cebf6f4321c5b7e7f2f426b5c30217b|1662681600000|1673053200000|1678237200000|app/templates/signin.hbs
remove|ember-template-lint|require-iframe-title|1|0|1|0|d1c9631d150af53ca33b16c8c280c9d815bf43da|1662681600000|1673053200000|1678237200000|app/components/gh-billing-iframe.hbs
remove|ember-template-lint|no-action|27|42|27|42|b60a8d95bc6d0e8c9f57d46647ab18947415d9dc|1662681600000|1673053200000|1678237200000|app/templates/settings/labs.hbs

View File

@ -25,7 +25,7 @@
<div class="modal-body">
{{#if (eq this.state 'INIT')}}
<ModalImportContent::ContentFileSelect @setFile={{action "setFile"}} />
<ModalImportContent::ContentFileSelect @setFile={{this.setFile}} />
{{/if}}
{{#if (eq this.state 'PROCESSING')}}
@ -52,10 +52,10 @@
{{/if}}
{{#if (eq this.state 'UPLOADING')}}
<button class="gh-btn disabled" disabled="disabled" data-test-button="restart-import-content" type="button" {{action "reset"}}>
<button class="gh-btn disabled" disabled="disabled" data-test-button="restart-import-content" type="button" {{on "click" this.reset}}>
<span>Start over</span>
</button>
<button class="gh-btn gh-btn-green gh-btn-icon disabled" disabled="disabled" type="button" {{action "upload"}}>
<button class="gh-btn gh-btn-green gh-btn-icon disabled" disabled="disabled" type="button" {{on "click" this.upload}}>
<span>{{svg-jar "spinner" class="gh-icon-spinner"}} {{this.runningText}}Uploading</span>
</button>
{{/if}}
@ -68,7 +68,7 @@
{{#if (eq this.state 'ERROR')}}
{{#if this.showTryAgainButton}}
<button class="gh-btn" data-test-button="restart-import-content" type="button" {{action "reset"}}>
<button class="gh-btn" data-test-button="restart-import-content" type="button" {{on "click" this.reset}}>
<span>Try again</span>
</button>
{{/if}}