Browse Source

feat(nc-gui): add expand record in kanban context menu

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
3f82e57f93
  1. 14
      packages/nc-gui/components/smartsheet/Kanban.vue

14
packages/nc-gui/components/smartsheet/Kanban.vue

@ -490,11 +490,19 @@ watch(contextMenu, () => {
<!-- Drop down Menu --> <!-- Drop down Menu -->
<template v-if="!isLocked && !isPublic && hasEditPermission" #overlay> <template v-if="!isLocked && !isPublic && hasEditPermission" #overlay>
<a-menu class="shadow !rounded !py-0" @click="contextMenu = false"> <a-menu class="shadow !rounded !py-0" @click="contextMenu = false">
<a-menu-item v-if="contextMenuTarget" @click="expandForm(contextMenuTarget)">
<div v-e="['a:kanban:expand-record']" class="nc-project-menu-item nc-kanban-context-menu-item">
<MdiArrowExpand class="flex" />
<!-- Expand Record -->
{{ $t('activity.expandRecord') }}
</div>
</a-menu-item>
<a-divider class="!m-0 !p-0" />
<a-menu-item v-if="contextMenuTarget" @click="deleteRow(contextMenuTarget)"> <a-menu-item v-if="contextMenuTarget" @click="deleteRow(contextMenuTarget)">
<div v-e="['a:row:delete']" class="nc-kanban-context-menu-item"> <div v-e="['a:kanban:delete-record']" class="nc-project-menu-item nc-kanban-context-menu-item">
<MdiDeleteOutline class="flex" /> <MdiDeleteOutline class="flex" />
<!-- Delete Row --> <!-- Delete Record -->
{{ $t('activity.deleteRow') }} {{ $t('activity.deleteRecord') }}
</div> </div>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>

Loading…
Cancel
Save