From dd915141a08034178b01bdfd55c71b4010ca51b1 Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Wed, 15 Jun 2022 10:59:28 +0600 Subject: [PATCH] Leads filter (#2073) Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> --- changelog.md | 4 ++++ models/lead/src/index.ts | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/changelog.md b/changelog.md index 7c0fa00225..cda2f87c7a 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,10 @@ Platform: - Allow to attach from clipboard +Leads: + +- Add filters + Tracker: - Attachments support diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index d5e7e236a6..46780a4807 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -193,6 +193,14 @@ export function createModel (builder: Builder): void { editor: lead.component.Leads }) + builder.mixin(lead.class.Lead, core.class.Class, view.mixin.ClassFilters, { + filters: ['attachedTo', 'title', 'assignee', 'state', 'doneState', 'modifiedOn'] + }) + + builder.mixin(lead.mixin.Customer, core.class.Class, view.mixin.ClassFilters, { + filters: ['_class', 'description', 'city', 'modifiedOn'] + }) + builder.createDoc( task.class.KanbanTemplateSpace, core.space.Model,