From f7ea37e357076c07f70155ff2b626b92de0ae277 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 14 Mar 2022 16:04:41 +0700 Subject: [PATCH] Update the labels of the create button (#1138) Signed-off-by: Alexander Platov --- models/lead/src/index.ts | 3 ++- models/recruit/src/index.ts | 6 +++++- models/recruit/src/review.ts | 3 ++- models/task/src/index.ts | 3 ++- plugins/contact-assets/lang/en.json | 2 +- plugins/contact-assets/lang/ru.json | 2 +- .../src/components/Contacts.svelte | 2 +- plugins/contact-resources/src/plugin.ts | 2 +- plugins/inventory-assets/lang/en.json | 4 ++-- plugins/inventory-assets/lang/ru.json | 4 ++-- .../src/components/Categories.svelte | 2 +- .../src/components/Products.svelte | 2 +- plugins/inventory-resources/src/plugin.ts | 4 ++-- plugins/lead-assets/lang/en.json | 1 + plugins/lead-assets/lang/ru.json | 1 + plugins/lead-resources/src/plugin.ts | 1 + plugins/recruit-assets/lang/en.json | 5 +++++ plugins/recruit-assets/lang/ru.json | 5 +++++ .../src/components/Candidates.svelte | 4 ++-- .../src/components/SkillsView.svelte | 2 +- .../src/components/Vacancies.svelte | 4 ++-- plugins/recruit-resources/src/plugin.ts | 5 +++++ plugins/tags-assets/lang/en.json | 2 +- plugins/tags-assets/lang/ru.json | 2 +- .../tags-resources/src/components/TagsView.svelte | 5 +++-- plugins/tags-resources/src/plugin.ts | 2 +- plugins/task-assets/lang/en.json | 1 + plugins/task-assets/lang/ru.json | 1 + plugins/task-resources/src/plugin.ts | 1 + .../src/components/SpaceHeader.svelte | 15 +++++++++------ .../src/components/SpaceView.svelte | 4 +++- .../src/components/Workbench.svelte | 9 +++++++-- plugins/workbench/src/index.ts | 1 + tests/sanity/tests/recruit.spec.ts | 6 +++--- 34 files changed, 78 insertions(+), 38 deletions(-) diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index fef472114e..0c9a49d0f0 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -70,7 +70,8 @@ export function createModel (builder: Builder): void { builder.mixin(lead.class.Funnel, core.class.Class, workbench.mixin.SpaceView, { view: { class: lead.class.Lead, - createItemDialog: lead.component.CreateLead + createItemDialog: lead.component.CreateLead, + createItemLabel: lead.string.LeadCreateLabel } }) diff --git a/models/recruit/src/index.ts b/models/recruit/src/index.ts index f8cbb24099..08f20ea67a 100644 --- a/models/recruit/src/index.ts +++ b/models/recruit/src/index.ts @@ -122,7 +122,8 @@ export function createModel (builder: Builder): void { builder.mixin(recruit.class.Vacancy, core.class.Class, workbench.mixin.SpaceView, { view: { class: recruit.class.Applicant, - createItemDialog: recruit.component.CreateApplication + createItemDialog: recruit.component.CreateApplication, + createItemLabel: recruit.string.ApplicationCreateLabel } }) @@ -157,6 +158,7 @@ export function createModel (builder: Builder): void { component: recruit.component.Vacancies, icon: recruit.icon.Vacancy, label: recruit.string.Vacancies, + createItemLabel: recruit.string.VacancyCreateLabel, position: 'bottom' }, { @@ -164,6 +166,7 @@ export function createModel (builder: Builder): void { component: recruit.component.Candidates, icon: contact.icon.Person, label: recruit.string.Candidates, + createItemLabel: recruit.string.CandidateCreateLabel, position: 'bottom' }, { @@ -180,6 +183,7 @@ export function createModel (builder: Builder): void { component: recruit.component.SkillsView, icon: tags.icon.Tags, label: recruit.string.SkillsLabel, + createItemLabel: recruit.string.SkillCreateLabel, position: 'bottom' } ] diff --git a/models/recruit/src/review.ts b/models/recruit/src/review.ts index 6681eff9ee..e575ff12f7 100644 --- a/models/recruit/src/review.ts +++ b/models/recruit/src/review.ts @@ -13,7 +13,8 @@ export function createReviewModel (builder: Builder): void { builder.mixin(recruit.class.ReviewCategory, core.class.Class, workbench.mixin.SpaceView, { view: { class: recruit.class.Review, - createItemDialog: recruit.component.CreateReview + createItemDialog: recruit.component.CreateReview, + createItemLabel: recruit.string.ReviewCreateLabel } }) diff --git a/models/task/src/index.ts b/models/task/src/index.ts index d597875638..32c99afeff 100644 --- a/models/task/src/index.ts +++ b/models/task/src/index.ts @@ -248,7 +248,8 @@ export function createModel (builder: Builder): void { builder.mixin(task.class.Project, core.class.Class, workbench.mixin.SpaceView, { view: { class: task.class.Issue, - createItemDialog: task.component.CreateTask + createItemDialog: task.component.CreateTask, + createItemLabel: task.string.TaskCreateLabel } }) diff --git a/plugins/contact-assets/lang/en.json b/plugins/contact-assets/lang/en.json index e2bb35aeed..52f7be3840 100644 --- a/plugins/contact-assets/lang/en.json +++ b/plugins/contact-assets/lang/en.json @@ -20,7 +20,7 @@ "PersonsFolder": "Persons folder", "MakePrivate": "Make private", "MakePrivateDescription": "Only members can see it", - "Create": "Contact", + "ContactCreateLabel": "Contact", "SearchEmployee": "Search for employee...", "SearchPerson": "Search for person...", "SearchOrganization": "Search for organization...", diff --git a/plugins/contact-assets/lang/ru.json b/plugins/contact-assets/lang/ru.json index 208952ff55..d7ea9f2666 100644 --- a/plugins/contact-assets/lang/ru.json +++ b/plugins/contact-assets/lang/ru.json @@ -20,7 +20,7 @@ "PersonsFolder": "Папка с людьми", "MakePrivate": "Сделать личным", "MakePrivateDescription": "Только пользователи могут видеть это", - "Create": "Контакт", + "ContactCreateLabel": "Контакт", "SearchEmployee": "Поиск сотрудника...", "SearchPerson": "Поиск персоны...", "SearchOrganization": "Поиск организации...", diff --git a/plugins/contact-resources/src/components/Contacts.svelte b/plugins/contact-resources/src/components/Contacts.svelte index fbe5834ee6..b14c0e9bed 100644 --- a/plugins/contact-resources/src/components/Contacts.svelte +++ b/plugins/contact-resources/src/components/Contacts.svelte @@ -49,7 +49,7 @@ { updateResultQuery(search) }}/> -