mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
09794a7c05
No ref - Updated modal default state to make it look more clickable - Updated the Casper upload error state design - Changed the 'try again' button to directly open the finder rather than only resetting the modal
23 lines
828 B
Handlebars
23 lines
828 B
Handlebars
{{#if this.file}}
|
|
{{!-- Upload in progress! --}}
|
|
{{#if this.failureMessage}}
|
|
<div class="failed">
|
|
{{this.failureMessage}}
|
|
<GhFileInput @multiple={{false}} @alt={{this.labelText}} @action={{action "retry"}} @accept={{this.accept}} class="try-again">
|
|
<span class="red fw5 nl1" data-test-upload-try-again-button>Try again</span>
|
|
</GhFileInput>
|
|
</div>
|
|
{{else}}
|
|
<div class="progress">
|
|
<div class="bar" style={{this.progressStyle}}></div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
<div class="upload-form">
|
|
<GhFileInput @multiple={{false}} @alt={{this.labelText}} @action={{action "fileSelected"}} @accept={{this.accept}}>
|
|
<div class="description">{{this.labelText}}</div>
|
|
</GhFileInput>
|
|
</div>
|
|
{{/if}}
|