|
|
@ -24,11 +24,18 @@ const isLocked = inject(IsLockedInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const addOrEditStackDropdown = ref(false) |
|
|
|
const addOrEditStackDropdown = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleSubmit = async () => { |
|
|
|
|
|
|
|
addOrEditStackDropdown.value = false |
|
|
|
|
|
|
|
await loadKanbanMeta() |
|
|
|
|
|
|
|
await loadKanbanData() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
provide(IsKanbanInj, ref(true)) |
|
|
|
provide(IsKanbanInj, ref(true)) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-dropdown v-if="isUIAllowed('edit-column')" v-model:visible="addOrEditStackDropdown" :trigger="['click']"> |
|
|
|
<a-dropdown v-if="isUIAllowed('edit-column')" v-model:visible="addOrEditStackDropdown" :trigger="['click']"> |
|
|
|
|
|
|
|
<div class="nc-kanban-btn"> |
|
|
|
<a-button v-t="['c:kanban-stack-edit-or-add']" class="nc-fields-menu-btn nc-toolbar-btn" :disabled="isLocked"> |
|
|
|
<a-button v-t="['c:kanban-stack-edit-or-add']" class="nc-fields-menu-btn nc-toolbar-btn" :disabled="isLocked"> |
|
|
|
<div class="flex items-center gap-1"> |
|
|
|
<div class="flex items-center gap-1"> |
|
|
|
<mdi-plus-circle-outline /> |
|
|
|
<mdi-plus-circle-outline /> |
|
|
@ -39,18 +46,12 @@ provide(IsKanbanInj, ref(true)) |
|
|
|
<MdiMenuDown class="text-grey" /> |
|
|
|
<MdiMenuDown class="text-grey" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<SmartsheetColumnEditOrAddProvider |
|
|
|
<SmartsheetColumnEditOrAddProvider |
|
|
|
v-if="addOrEditStackDropdown" |
|
|
|
v-if="addOrEditStackDropdown" |
|
|
|
:column="groupingFieldColumn" |
|
|
|
:column="groupingFieldColumn" |
|
|
|
@submit=" |
|
|
|
@submit="handleSubmit" |
|
|
|
;async () => { |
|
|
|
|
|
|
|
addOrEditStackDropdown = false |
|
|
|
|
|
|
|
await loadKanbanMeta() |
|
|
|
|
|
|
|
await loadKanbanData() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@cancel="addOrEditStackDropdown = false" |
|
|
|
@cancel="addOrEditStackDropdown = false" |
|
|
|
@click.stop |
|
|
|
@click.stop |
|
|
|
@keydown.stop |
|
|
|
@keydown.stop |
|
|
|