mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 06:35:14 +08:00
35 lines
703 B
Vue
35 lines
703 B
Vue
<template>
|
|
<div class="attachment-container asset"
|
|
:data-asset-id="attachment.id"
|
|
:data-e2e="`e2e-CO-${dataE2e}-attachment${attachment.id}-empty`">
|
|
<div
|
|
class="file-name"
|
|
:id="`modal_link${attachment.id}`"
|
|
data-no-turbolink="true"
|
|
:data-id="attachment.id"
|
|
>
|
|
<div class="attachment-preview processing" :class= "attachment.attributes.asset_type"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'emptyAttachment',
|
|
props: {
|
|
attachment: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
parentId: {
|
|
type: Number,
|
|
required: true
|
|
},
|
|
dataE2e: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
}
|
|
};
|
|
</script>
|