|
|
|
@ -1498,7 +1498,8 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => {
|
|
|
|
|
<NcMenuItem |
|
|
|
|
v-if="!contextMenuClosing && !contextMenuTarget && data.some((r) => r.rowMeta.selected)" |
|
|
|
|
v-e="['a:row:delete-bulk']" |
|
|
|
|
class="nc-project-menu-item" |
|
|
|
|
class="nc-project-menu-item !text-red-600 !hover:bg-red-50" |
|
|
|
|
data-testid="nc-delete-row" |
|
|
|
|
@click="deleteSelectedRows" |
|
|
|
|
> |
|
|
|
|
<component :is="iconMap.delete" /> |
|
|
|
@ -1554,7 +1555,7 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => {
|
|
|
|
|
<GeneralIcon icon="closeBox" class="text-gray-500" /> |
|
|
|
|
Clear |
|
|
|
|
</NcMenuItem> |
|
|
|
|
<NcDivider /> |
|
|
|
|
<NcDivider v-if="!(!contextMenuClosing && !contextMenuTarget && data.some((r) => r.rowMeta.selected))" /> |
|
|
|
|
<NcMenuItem |
|
|
|
|
v-if="contextMenuTarget && (selectedRange.isSingleCell() || selectedRange.isSingleRow())" |
|
|
|
|
v-e="['a:row:delete']" |
|
|
|
|