From 9113ca1b236749d75fafa01e320829f2de47ece2 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Tue, 6 Jun 2023 11:46:56 +0600 Subject: [PATCH] UBER-372 Exclude search category and notifications (#3352) Signed-off-by: Denis Bykhov --- models/all/src/index.ts | 24 +++++++++++++++++++----- plugins/calendar-assets/lang/ru.json | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/models/all/src/index.ts b/models/all/src/index.ts index b8f84a2da8..aa872bc461 100644 --- a/models/all/src/index.ts +++ b/models/all/src/index.ts @@ -31,9 +31,9 @@ import gmail, { gmailId, createModel as gmailModel } from '@hcengineering/model- import hr, { hrId, createModel as hrModel } from '@hcengineering/model-hr' import inventory, { inventoryId, createModel as inventoryModel } from '@hcengineering/model-inventory' import lead, { leadId, createModel as leadModel } from '@hcengineering/model-lead' -import { notificationId, createModel as notificationModel } from '@hcengineering/model-notification' +import notification, { notificationId, createModel as notificationModel } from '@hcengineering/model-notification' import { preferenceId, createModel as preferenceModel } from '@hcengineering/model-preference' -import { presentationId, createModel as presentationModel } from '@hcengineering/model-presentation' +import presentation, { presentationId, createModel as presentationModel } from '@hcengineering/model-presentation' import recruit, { recruitId, createModel as recruitModel } from '@hcengineering/model-recruit' import { requestId, createModel as requestModel } from '@hcengineering/model-request' import { serverAttachmentId, createModel as serverAttachmentModel } from '@hcengineering/model-server-attachment' @@ -100,7 +100,11 @@ export default function buildModel (enabled: string[] = ['*'], disabled: string[ enabled: true, beta: false, icon: contact.icon.ContactApplication, - classFilter: [workbench.class.Application] + classFilter: [ + workbench.class.Application, + presentation.class.ObjectSearchCategory, + notification.class.NotificationGroup + ] } ], [ @@ -125,7 +129,12 @@ export default function buildModel (enabled: string[] = ['*'], disabled: string[ enabled: true, beta: false, icon: recruit.icon.RecruitApplication, - classFilter: [workbench.class.Application, view.class.Action] + classFilter: [ + workbench.class.Application, + view.class.Action, + presentation.class.ObjectSearchCategory, + notification.class.NotificationGroup + ] } ], [settingModel, settingId], @@ -221,7 +230,12 @@ export default function buildModel (enabled: string[] = ['*'], disabled: string[ enabled: true, beta: false, icon: tracker.icon.TrackerApplication, - classFilter: [workbench.class.Application, view.class.Action] + classFilter: [ + workbench.class.Application, + view.class.Action, + presentation.class.ObjectSearchCategory, + notification.class.NotificationGroup + ] } ], [ diff --git a/plugins/calendar-assets/lang/ru.json b/plugins/calendar-assets/lang/ru.json index 3a2761d00d..a1c3506118 100644 --- a/plugins/calendar-assets/lang/ru.json +++ b/plugins/calendar-assets/lang/ru.json @@ -38,7 +38,7 @@ "AndMore": "И еще {count}", "CreateEvent": "Создать событие", "EventFor": "Событие для: ", - "ConfigLabel": "Календаоь", + "ConfigLabel": "Календарь", "ConfigDescription": "Расширение для календаря с событиями" } } \ No newline at end of file