mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
UBERF-18: add reactions for comments (#3899)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@ import { Builder } from '@hcengineering/model'
|
||||
import core from '@hcengineering/model-core'
|
||||
import task from '@hcengineering/model-task'
|
||||
import view from '@hcengineering/model-view'
|
||||
import chunter from '@hcengineering/model-chunter'
|
||||
import workbench from '@hcengineering/model-workbench'
|
||||
import notification from '@hcengineering/notification'
|
||||
import setting from '@hcengineering/setting'
|
||||
@@ -521,6 +522,54 @@ export function createModel (builder: Builder): void {
|
||||
order: 4000
|
||||
})
|
||||
|
||||
builder.createDoc(
|
||||
activity.class.ActivityExtension,
|
||||
core.space.Model,
|
||||
{
|
||||
ofClass: tracker.class.Issue,
|
||||
components: {
|
||||
input: chunter.component.CommentInput
|
||||
}
|
||||
},
|
||||
tracker.ids.IssueActivityExtension
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
activity.class.ActivityExtension,
|
||||
core.space.Model,
|
||||
{
|
||||
ofClass: tracker.class.IssueTemplate,
|
||||
components: {
|
||||
input: chunter.component.CommentInput
|
||||
}
|
||||
},
|
||||
tracker.ids.IssueTemplateActivityExtension
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
activity.class.ActivityExtension,
|
||||
core.space.Model,
|
||||
{
|
||||
ofClass: tracker.class.Component,
|
||||
components: {
|
||||
input: chunter.component.CommentInput
|
||||
}
|
||||
},
|
||||
tracker.ids.ComponentActivityExtension
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
activity.class.ActivityExtension,
|
||||
core.space.Model,
|
||||
{
|
||||
ofClass: tracker.class.Milestone,
|
||||
components: {
|
||||
input: chunter.component.CommentInput
|
||||
}
|
||||
},
|
||||
tracker.ids.MilestoneActivityExtension
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
task.class.ProjectTypeCategory,
|
||||
core.space.Model,
|
||||
|
||||
@@ -13,11 +13,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { TxViewlet } from '@hcengineering/activity'
|
||||
import { Doc, Ref } from '@hcengineering/core'
|
||||
import { ObjectSearchCategory, ObjectSearchFactory } from '@hcengineering/model-presentation'
|
||||
import { NotificationGroup, NotificationType } from '@hcengineering/notification'
|
||||
import { IntlString, Resource, mergeIds } from '@hcengineering/platform'
|
||||
import { ProjectType } from '@hcengineering/task'
|
||||
import { trackerId } from '@hcengineering/tracker'
|
||||
@@ -25,6 +22,8 @@ import tracker from '@hcengineering/tracker-resources/src/plugin'
|
||||
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||
import { Action, ViewAction, Viewlet } from '@hcengineering/view'
|
||||
import { Application } from '@hcengineering/workbench'
|
||||
import { ActivityExtension, TxViewlet } from '@hcengineering/activity'
|
||||
import { NotificationGroup, NotificationType } from '@hcengineering/notification'
|
||||
|
||||
export default mergeIds(trackerId, tracker, {
|
||||
string: {
|
||||
@@ -75,6 +74,10 @@ export default mergeIds(trackerId, tracker, {
|
||||
TxIssueCreated: '' as Ref<TxViewlet>,
|
||||
TrackerNotificationGroup: '' as Ref<NotificationGroup>,
|
||||
AssigneeNotification: '' as Ref<NotificationType>,
|
||||
IssueActivityExtension: '' as Ref<ActivityExtension>,
|
||||
IssueTemplateActivityExtension: '' as Ref<ActivityExtension>,
|
||||
ComponentActivityExtension: '' as Ref<ActivityExtension>,
|
||||
MilestoneActivityExtension: '' as Ref<ActivityExtension>,
|
||||
BaseProjectType: '' as Ref<ProjectType>
|
||||
},
|
||||
completion: {
|
||||
|
||||
Reference in New Issue
Block a user