|
|
@ -8,7 +8,7 @@ |
|
|
|
@dragend="dragOver = false" |
|
|
|
@dragend="dragOver = false" |
|
|
|
@drop.prevent="onFileDrop" |
|
|
|
@drop.prevent="onFileDrop" |
|
|
|
> |
|
|
|
> |
|
|
|
<div v-show="_isUIAllowed('tableAttachment') && dragOver" class="drop-overlay"> |
|
|
|
<div v-show="(isForm || _isUIAllowed('tableAttachment')) && dragOver" class="drop-overlay"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<v-icon small> |
|
|
|
<v-icon small> |
|
|
|
mdi-cloud-upload-outline |
|
|
|
mdi-cloud-upload-outline |
|
|
@ -62,11 +62,16 @@ |
|
|
|
</v-tooltip> |
|
|
|
</v-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="active && !isPublicGrid" class="add d-flex align-center justify-center px-1" @click="addFile"> |
|
|
|
<div v-if="isForm || active && !isPublicGrid" class="add d-flex align-center justify-center px-1 nc-attachment-add" @click="addFile"> |
|
|
|
<v-icon v-if="uploading" small color="primary"> |
|
|
|
<v-icon v-if="uploading" small color="primary" class="nc-attachment-add-spinner"> |
|
|
|
mdi-loading mdi-spin |
|
|
|
mdi-loading mdi-spin |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
<v-icon v-else-if="_isUIAllowed('tableAttachment')" v-show="active" small color="primary"> |
|
|
|
<v-btn v-else-if="isForm" outlined x-small class="nc-attachment-add-btn"> |
|
|
|
|
|
|
|
<v-icon x-small color="primary"> |
|
|
|
|
|
|
|
mdi-plus |
|
|
|
|
|
|
|
</v-icon> Attachment |
|
|
|
|
|
|
|
</v-btn> |
|
|
|
|
|
|
|
<v-icon v-else-if="_isUIAllowed('tableAttachment')" v-show="active" small color="primary nc-attachment-add-icon"> |
|
|
|
mdi-plus |
|
|
|
mdi-plus |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -88,7 +93,7 @@ |
|
|
|
<v-card-text class="h-100 backgroundColor"> |
|
|
|
<v-card-text class="h-100 backgroundColor"> |
|
|
|
<div class="d-flex mx-2"> |
|
|
|
<div class="d-flex mx-2"> |
|
|
|
<v-btn |
|
|
|
<v-btn |
|
|
|
v-if="_isUIAllowed('tableAttachment') && !isPublicGrid" |
|
|
|
v-if="(isForm || _isUIAllowed('tableAttachment')) && !isPublicGrid" |
|
|
|
small |
|
|
|
small |
|
|
|
class="my-4 " |
|
|
|
class="my-4 " |
|
|
|
:loading="uploading" |
|
|
|
:loading="uploading" |
|
|
|