mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 08:34:49 +08:00
Merge pull request #6150 from lasniscinote/gl_SCI_9224
Fix missing paperclip icon for file attachment [SCI-9224]
This commit is contained in:
commit
b46e20b917
1 changed files with 5 additions and 3 deletions
|
@ -10,13 +10,15 @@
|
|||
:data-gallery-view-id="stepId"
|
||||
:data-preview-url="attachment.attributes.urls.preview"
|
||||
>
|
||||
<div class="attachment-preview" :class= "attachment.attributes.asset_type">
|
||||
<img v-if="attachment.attributes.medium_preview"
|
||||
<div v-if="attachment.attributes.medium_preview" class="attachment-preview" :class= "attachment.attributes.asset_type">
|
||||
<img
|
||||
:src="attachment.attributes.medium_preview"
|
||||
@error="ActiveStoragePreviews.reCheckPreview"
|
||||
@load="ActiveStoragePreviews.showPreview"
|
||||
style='opacity: 0' />
|
||||
<span v-else class="sn-icon sn-icon-sequence-editor"></span>
|
||||
</div>
|
||||
<div v-else class="attachment-preview flex">
|
||||
<span class="fa fa-paperclip m-auto text-4xl"></span>
|
||||
</div>
|
||||
<div class="attachment-label"
|
||||
data-toggle="tooltip"
|
||||
|
|
Loading…
Add table
Reference in a new issue