From 63c24da02aabdb024d219dee745b56b5573fd24c Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Mon, 27 Nov 2023 12:58:14 +0600 Subject: [PATCH] Automation (#4052) Signed-off-by: Denis Bykhov --- models/task/src/index.ts | 6 +- plugins/task-assets/lang/en.json | 4 +- plugins/task-assets/lang/ru.json | 4 +- .../state/StatesProjectEditor.svelte | 3 +- .../components/state/TypeStatesPopup.svelte | 86 +++++++++++++++++++ plugins/task-resources/src/index.ts | 3 +- plugins/task-resources/src/plugin.ts | 4 +- plugins/task/src/index.ts | 5 +- 8 files changed, 105 insertions(+), 10 deletions(-) create mode 100644 plugins/task-resources/src/components/state/TypeStatesPopup.svelte diff --git a/models/task/src/index.ts b/models/task/src/index.ts index 9c071ca8a6..5580ce67a8 100644 --- a/models/task/src/index.ts +++ b/models/task/src/index.ts @@ -71,8 +71,6 @@ export const DOMAIN_KANBAN = 'kanban' as Domain /** * @public - * - * No domain is specified, since pure Tasks could not exists */ @Model(task.class.Task, core.class.AttachedDoc, DOMAIN_TASK) @UX(task.string.Task, task.icon.Task, task.string.Task) @@ -86,8 +84,8 @@ export class TTask extends TAttachedDoc implements Task { @Hidden() number!: number - // @Prop(TypeRef(contact.mixin.Employee), task.string.TaskAssignee) - assignee!: Ref | null + @Prop(TypeRef(contact.mixin.Employee), task.string.TaskAssignee) + assignee!: Ref | null @Prop(TypeDate(), task.string.DueDate, { editor: task.component.DueDateEditor }) dueDate!: Timestamp | null diff --git a/plugins/task-assets/lang/en.json b/plugins/task-assets/lang/en.json index 8bff5fef02..c5da82c64e 100644 --- a/plugins/task-assets/lang/en.json +++ b/plugins/task-assets/lang/en.json @@ -75,6 +75,8 @@ "StatusPopupTitle": "Create new status or edit name for existing", "NameAlreadyExists": "This name already exists for this status type", "ProjectType": "Project type", - "ProjectTypes": "Project types" + "ProjectTypes": "Project types", + "StatusChange": "Status changed", + "TaskCreated": "Task created" } } \ No newline at end of file diff --git a/plugins/task-assets/lang/ru.json b/plugins/task-assets/lang/ru.json index 3bb46bf489..95777019b4 100644 --- a/plugins/task-assets/lang/ru.json +++ b/plugins/task-assets/lang/ru.json @@ -75,6 +75,8 @@ "StatusPopupTitle": "Создание статуса и изменение имени существующего", "NameAlreadyExists": "Данное имя уже используется другим статусом этого типа", "ProjectType": "Тип проекта", - "ProjectTypes": "Типы проектов" + "ProjectTypes": "Типы проектов", + "StatusChange": "Статус изменен", + "TaskCreated": "Создана задача" } } \ No newline at end of file diff --git a/plugins/task-resources/src/components/state/StatesProjectEditor.svelte b/plugins/task-resources/src/components/state/StatesProjectEditor.svelte index a0b442e468..ebf021970e 100644 --- a/plugins/task-resources/src/components/state/StatesProjectEditor.svelte +++ b/plugins/task-resources/src/components/state/StatesProjectEditor.svelte @@ -15,7 +15,7 @@ --> + +
dispatch('changeContent')}> +