mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Updated ember action usage
This commit is contained in:
parent
881f0b33be
commit
9dea8f13d8
2 changed files with 1017 additions and 653 deletions
File diff suppressed because it is too large
Load diff
|
@ -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}}
|
||||
|
|
Loading…
Add table
Reference in a new issue