From d1bd356f64faf1e6f8c701fea2e20338ac807755 Mon Sep 17 00:00:00 2001 From: Sergei Ogorelkov Date: Tue, 7 Jun 2022 15:54:37 +0700 Subject: [PATCH] Add "Editable" mixin to "Issue" class (TSK-19) (#2021) --- models/tracker/package.json | 3 ++- models/tracker/src/index.ts | 3 +++ plugins/tracker-assets/lang/en.json | 10 +++++----- plugins/tracker-assets/lang/ru.json | 18 +++++++++++------- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/models/tracker/package.json b/models/tracker/package.json index a1b9c53017..6f8dfbde9a 100644 --- a/models/tracker/package.json +++ b/models/tracker/package.json @@ -40,6 +40,7 @@ "@anticrm/model-chunter": "~0.6.0", "@anticrm/workbench": "~0.6.1", "@anticrm/view": "~0.6.0", - "@anticrm/model-presentation": "~0.6.0" + "@anticrm/model-presentation": "~0.6.0", + "@anticrm/setting": "~0.6.1" } } diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index e587e596ab..520ad6b26c 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -38,6 +38,7 @@ import { createAction } from '@anticrm/model-view' import workbench, { createNavigateAction } from '@anticrm/model-workbench' import { Asset, IntlString } from '@anticrm/platform' import view, { KeyBinding } from '@anticrm/view' +import setting from '@anticrm/setting' import { Document, Issue, @@ -335,6 +336,8 @@ export function createModel (builder: Builder): void { presenter: tracker.component.ProjectTitlePresenter }) + builder.mixin(tracker.class.Issue, core.class.Class, setting.mixin.Editable, {}) + builder.createDoc( workbench.class.Application, core.space.Model, diff --git a/plugins/tracker-assets/lang/en.json b/plugins/tracker-assets/lang/en.json index 087420a13f..2bde9dc3d1 100644 --- a/plugins/tracker-assets/lang/en.json +++ b/plugins/tracker-assets/lang/en.json @@ -73,10 +73,10 @@ "SubIssuesList": "Sub-issues ({subIssues})", "OpenSubIssues": "Open sub-issues", "AddSubIssues": "{subIssues, plural, =1 {Add sub-issue} other {+ Add sub-issues}}", - "BlockedBy": "", - "RelatedTo": "", - "Comments": "", - "Attachments": "", + "BlockedBy": "Blocked by", + "RelatedTo": "Related to", + "Comments": "Comments", + "Attachments": "Attachments", "Labels": "Labels", "Project": "Project", "Space": "", @@ -84,7 +84,7 @@ "ChangeDueDate": "Change due date\u2026", "ModificationDate": "Updated {value}", "Team": "", - "Issue": "", + "Issue": "Issue", "Document": "", "DocumentIcon": "", "DocumentColor": "", diff --git a/plugins/tracker-assets/lang/ru.json b/plugins/tracker-assets/lang/ru.json index 60f00bb83c..7016b01da3 100644 --- a/plugins/tracker-assets/lang/ru.json +++ b/plugins/tracker-assets/lang/ru.json @@ -51,20 +51,24 @@ "Title": "Заголовок", "Description": "Описание", "Status": "Статус", - "Number": "Number", + "Number": "Номер", "Assignee": "Исполнитель", "AssignTo": "Назначить...", - "Parent": "Указать родительскую задачу\u2026", - "BlockedBy": "", - "RelatedTo": "", - "Comments": "", - "Attachments": "", + "Parent": "Родительская задача", + "SetParent": "Задать родительскую задачу\u2026", + "ChangeParent": "Изменить родительскую задачу\u2026", + "RemoveParent": "Удалить родительскую задачу", + "OpenParent": "Открыть родительскую задачу", + "BlockedBy": "Блокируется", + "RelatedTo": "Связано", + "Comments": "Комментарии", + "Attachments": "Вложения", "Labels": "Метки", "Project": "Проект", "Space": "", "DueDate": "Указать срок выполнения\u2026", "Team": "", - "Issue": "", + "Issue": "Задача", "Document": "", "DocumentIcon": "", "DocumentColor": "",