|
|
@ -108,7 +108,11 @@ const onConfirmDeleteRowClick = async () => { |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
<div class="text-center w-full">{{ $t('general.reload') }}</div> |
|
|
|
<div class="text-center w-full">{{ $t('general.reload') }}</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<mdi-reload v-if="!isNew" class="cursor-pointer select-none text-gray-500 mx-1 min-w-4" @click="loadRow" /> |
|
|
|
<mdi-reload |
|
|
|
|
|
|
|
v-if="!isNew" |
|
|
|
|
|
|
|
class="nc-icon-transition cursor-pointer select-none text-gray-500 mx-1 min-w-4" |
|
|
|
|
|
|
|
@click="loadRow" |
|
|
|
|
|
|
|
/> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
@ -117,7 +121,7 @@ const onConfirmDeleteRowClick = async () => { |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<mdi-link |
|
|
|
<mdi-link |
|
|
|
v-if="!isNew" |
|
|
|
v-if="!isNew" |
|
|
|
class="cursor-pointer select-none text-gray-500 mx-1 nc-copy-row-url min-w-4" |
|
|
|
class="nc-icon-transition cursor-pointer select-none text-gray-500 mx-1 nc-copy-row-url min-w-4" |
|
|
|
@click="copyRecordUrl" |
|
|
|
@click="copyRecordUrl" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
@ -130,61 +134,40 @@ const onConfirmDeleteRowClick = async () => { |
|
|
|
<MdiCommentTextOutline |
|
|
|
<MdiCommentTextOutline |
|
|
|
v-if="isUIAllowed('rowComments') && !isNew" |
|
|
|
v-if="isUIAllowed('rowComments') && !isNew" |
|
|
|
v-e="['c:row-expand:comment-toggle']" |
|
|
|
v-e="['c:row-expand:comment-toggle']" |
|
|
|
class="cursor-pointer select-none nc-toggle-comments text-gray-500 mx-1 min-w-4" |
|
|
|
class="nc-icon-transition cursor-pointer select-none nc-toggle-comments text-gray-500 mx-1 min-w-4" |
|
|
|
@click="commentsDrawer = !commentsDrawer" |
|
|
|
@click="commentsDrawer = !commentsDrawer" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
|
|
|
|
<a-button class="!text mx-1 nc-expand-form-close-btn" @click="emit('cancel')"> |
|
|
|
<a-tooltip v-if="!isSqlView" placement="bottom"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<!-- Duplicate row --> |
|
|
|
<MdiCloseCircleOutline class="mr-1" /> |
|
|
|
<template #title> |
|
|
|
<!-- Close --> |
|
|
|
<div class="text-center w-full">{{ $t('activity.duplicateRow') }}</div> |
|
|
|
{{ $t('general.close') }} |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
<MdiContentCopy |
|
|
|
</a-button> |
|
|
|
v-if="isUIAllowed('xcDatatableEditable') && !isNew" |
|
|
|
|
|
|
|
v-e="['c:row-expand:duplicate']" |
|
|
|
<a-dropdown> |
|
|
|
class="nc-icon-transition cursor-pointer select-none nc-duplicate-row text-gray-500 mx-1 min-w-4" |
|
|
|
<a-button v-e="['c:actions']" class="nc-actions-menu-btn nc-toolbar-btn"> |
|
|
|
@click="!isNew && emit('duplicateRow')" |
|
|
|
<div class="flex gap-1 items-center"> |
|
|
|
/> |
|
|
|
<!-- More --> |
|
|
|
</a-tooltip> |
|
|
|
<span class="!text-sm font-weight-medium">{{ $t('general.more') }}</span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<MdiMenuDown class="text-grey" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template #overlay> |
|
|
|
|
|
|
|
<div class="bg-gray-50 py-2 shadow-lg !border"> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-e="['a:actions:duplicate-row']" |
|
|
|
|
|
|
|
class="nc-menu-item" |
|
|
|
|
|
|
|
:class="{ disabled: isNew }" |
|
|
|
|
|
|
|
@click="!isNew && emit('duplicateRow')" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<MdiContentCopy class="text-gray-500" /> |
|
|
|
|
|
|
|
{{ $t('activity.duplicateRow') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal v-model:visible="showDeleteRowModal" title="Delete row?" @ok="onConfirmDeleteRowClick"> |
|
|
|
<a-tooltip v-if="!isSqlView" placement="bottom"> |
|
|
|
<p>Are you sure you want to delete this row?</p> |
|
|
|
<!-- Delete row --> |
|
|
|
</a-modal> |
|
|
|
<template #title> |
|
|
|
|
|
|
|
<div class="text-center w-full">{{ $t('activity.deleteRow') }}</div> |
|
|
|
<div |
|
|
|
|
|
|
|
v-e="['a:actions:delete-row']" |
|
|
|
|
|
|
|
class="nc-menu-item" |
|
|
|
|
|
|
|
:class="{ disabled: isNew }" |
|
|
|
|
|
|
|
@click="!isNew && onDeleteRowClick()" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<MdiDelete class="text-gray-500" /> |
|
|
|
|
|
|
|
{{ $t('activity.deleteRow') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-dropdown> |
|
|
|
<MdiDeleteOutline |
|
|
|
|
|
|
|
v-if="isUIAllowed('xcDatatableEditable') && !isNew" |
|
|
|
|
|
|
|
v-e="['c:row-expand:delete']" |
|
|
|
|
|
|
|
class="nc-icon-transition cursor-pointer select-none nc-delete-row text-gray-500 mx-1 min-w-4" |
|
|
|
|
|
|
|
@click="!isNew && onDeleteRowClick()" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
|
|
|
|
<a-dropdown-button class="nc-expand-form-save-btn" type="primary" :disabled="!isUIAllowed('tableRowUpdate')" @click="save"> |
|
|
|
<a-dropdown-button class="nc-expand-form-save-btn" type="primary" :disabled="!isUIAllowed('tableRowUpdate')" @click="save"> |
|
|
|
|
|
|
|
<template #icon><MdiMenuDown /></template> |
|
|
|
|
|
|
|
|
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<a-menu class="nc-expand-form-save-dropdown-menu"> |
|
|
|
<a-menu class="nc-expand-form-save-dropdown-menu"> |
|
|
|
<a-menu-item key="0" class="!py-2 flex gap-2" @click="saveRowAndStay = 0"> |
|
|
|
<a-menu-item key="0" class="!py-2 flex gap-2" @click="saveRowAndStay = 0"> |
|
|
@ -210,5 +193,26 @@ const onConfirmDeleteRowClick = async () => { |
|
|
|
{{ $t('activity.saveAndStay') }} |
|
|
|
{{ $t('activity.saveAndStay') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-dropdown-button> |
|
|
|
</a-dropdown-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
|
|
|
|
<!-- Close --> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
<div class="text-center w-full">{{ $t('general.close') }}</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<MdiCloseCircleOutline |
|
|
|
|
|
|
|
class="nc-icon-transition cursor-pointer select-none nc-close-form text-gray-500 mx-1 min-w-4" |
|
|
|
|
|
|
|
@click="emit('cancel')" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal v-model:visible="showDeleteRowModal" title="Delete row?" @ok="onConfirmDeleteRowClick"> |
|
|
|
|
|
|
|
<p>Are you sure you want to delete this row?</p> |
|
|
|
|
|
|
|
</a-modal> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
|
|
|
:deep(svg) { |
|
|
|
|
|
|
|
@apply outline-none; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|