Ghost/ghost/admin/app/components/gh-file-uploader.hbs
Sanne de Vries 09794a7c05 Updated theme upload modal in Casper error state
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
2022-07-14 15:07:08 +01:00

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}}