diff --git a/plugins/board-resources/src/components/KanbanView.svelte b/plugins/board-resources/src/components/KanbanView.svelte index 4dfb02fd7a..a97e406556 100644 --- a/plugins/board-resources/src/components/KanbanView.svelte +++ b/plugins/board-resources/src/components/KanbanView.svelte @@ -17,10 +17,11 @@ - // eslint-disable-next-line no-undef + + {addItem(e.detail)}} /> + diff --git a/plugins/task-assets/lang/en.json b/plugins/task-assets/lang/en.json index 8927deb8cf..ec1334284c 100644 --- a/plugins/task-assets/lang/en.json +++ b/plugins/task-assets/lang/en.json @@ -28,6 +28,9 @@ "MarkAsDone": "Mark as done", "MarkAsUndone": "Mark as undone", "Kanban": "Kanban", + "NewList": "Add another list", + "AddList": "Add list", + "NewListPlaceholder": "Enter list title...", "ApplicationLabelTask": "Tasks", "Projects": "Projects", diff --git a/plugins/task-assets/lang/ru.json b/plugins/task-assets/lang/ru.json index 9cef06dcdf..353c48edd4 100644 --- a/plugins/task-assets/lang/ru.json +++ b/plugins/task-assets/lang/ru.json @@ -28,6 +28,9 @@ "MarkAsDone": "Отметить выполненным", "MarkAsUndone": "Отметить невыполненным", "Kanban": "Канбан", + "NewList": "Добавить еще одну колонку", + "AddList": "Добавить колонку", + "NewListPlaceholder": "Введите заголовок колонки...", "ApplicationLabelTask": "Задачи", "Projects": "Проекты", diff --git a/plugins/task-resources/src/components/kanban/Kanban.svelte b/plugins/task-resources/src/components/kanban/Kanban.svelte index 97321e5d22..8bd2685528 100644 --- a/plugins/task-resources/src/components/kanban/Kanban.svelte +++ b/plugins/task-resources/src/components/kanban/Kanban.svelte @@ -205,7 +205,7 @@ {/each} {/each} - + diff --git a/plugins/task-resources/src/components/kanban/KanbanPanelEmpty.svelte b/plugins/task-resources/src/components/kanban/KanbanPanelEmpty.svelte new file mode 100644 index 0000000000..d3ce6945e5 --- /dev/null +++ b/plugins/task-resources/src/components/kanban/KanbanPanelEmpty.svelte @@ -0,0 +1,67 @@ + + +
+ {#if isAdding} + +
+
+ {:else} +
+ + diff --git a/plugins/task-resources/src/index.ts b/plugins/task-resources/src/index.ts index 27d2797033..62682b1422 100644 --- a/plugins/task-resources/src/index.ts +++ b/plugins/task-resources/src/index.ts @@ -44,6 +44,7 @@ import AssignedTasks from './components/AssignedTasks.svelte' import task from './plugin' export { default as Kanban } from './components/kanban/Kanban.svelte' +export { default as KanbanPanelEmpty } from './components/kanban/KanbanPanelEmpty.svelte' async function createTask (object: Doc): Promise { showPopup(CreateTask, { parent: object._id, space: object.space }) diff --git a/plugins/task-resources/src/plugin.ts b/plugins/task-resources/src/plugin.ts index 1dc2d423f8..e23c9564b4 100644 --- a/plugins/task-resources/src/plugin.ts +++ b/plugins/task-resources/src/plugin.ts @@ -34,6 +34,9 @@ export default mergeIds(taskId, task, { TodoDescriptionPlaceholder: '' as IntlString, Todos: '' as IntlString, TodoName: '' as IntlString, + NewList: '' as IntlString, + AddList: '' as IntlString, + NewListPlaceholder: '' as IntlString, MakePrivate: '' as IntlString, MakePrivateDescription: '' as IntlString,