mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 19:44:57 +02:00
Fix activity messages generation and display (#4469)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
+2
-9
@@ -83,7 +83,7 @@
|
||||
.getModel()
|
||||
.findAllSync(activity.class.DocUpdateMessageViewlet, { action: value.action, objectClass: value.objectClass })
|
||||
|
||||
$: void getAttributeModel(client, value.attributeUpdates, value.attachedToClass).then((model) => {
|
||||
$: void getAttributeModel(client, value.attributeUpdates, value.objectClass).then((model) => {
|
||||
attributeModel = model
|
||||
})
|
||||
|
||||
@@ -197,14 +197,7 @@
|
||||
</ShowMore>
|
||||
{:else if value.action === 'create' || value.action === 'remove'}
|
||||
<ShowMore>
|
||||
<DocUpdateMessageContent
|
||||
objectClass={value.objectClass}
|
||||
message={value}
|
||||
{viewlet}
|
||||
{objectName}
|
||||
{collectionName}
|
||||
{collectionAttribute}
|
||||
/>
|
||||
<DocUpdateMessageContent message={value} {viewlet} {objectName} {collectionName} {collectionAttribute} />
|
||||
</ShowMore>
|
||||
{:else if value.attributeUpdates && attributeModel}
|
||||
<DocUpdateMessageAttributes attributeUpdates={value.attributeUpdates} {attributeModel} {viewlet} />
|
||||
|
||||
Reference in New Issue
Block a user