Browse Source

feat(nc-gui): add kanban view in menu bottom

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
a16ba2e05f
  1. 22
      packages/nc-gui/components/smartsheet/sidebar/MenuBottom.vue

22
packages/nc-gui/components/smartsheet/sidebar/MenuBottom.vue

@ -95,6 +95,28 @@ function onOpenModal(type: ViewTypes, title = '') {
</a-tooltip>
</a-menu-item>
<a-menu-item
key="kanban"
class="group !flex !items-center !my-0 nc-create-kanban-view"
@click="onOpenModal(ViewTypes.KANBAN)"
>
<a-tooltip :mouse-enter-delay="1" placement="left">
<template #title>
{{ $t('msg.info.addView.kanban') }}
</template>
<div class="nc-project-menu-item text-xs flex items-center h-full w-full gap-2">
<component :is="viewIcons[ViewTypes.KANBAN].icon" :style="{ color: viewIcons[ViewTypes.KANBAN].color }" />
<div>{{ $t('objects.viewType.kanban') }}</div>
<div class="flex-1" />
<mdi-plus class="group-hover:text-primary" />
</div>
</a-tooltip>
</a-menu-item>
<div class="w-full h-4" />
</div>
</a-menu>

Loading…
Cancel
Save