mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 12:35:02 +02:00
Fix activity for removed tags (#8761)
* Fix activity for removed tags Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> * Fix text Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com> --------- Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -162,11 +162,11 @@ async function getUpdateText (update: ActivityUpdate, card: Card, hierarchy: Hie
|
||||
const clazz = hierarchy.getClass(update.tag)
|
||||
if (update.action === 'add') {
|
||||
const tagName = await translate(clazz.label, {})
|
||||
return await translate(activity.string.NewObjectType, { type: 'tag', title: tagName })
|
||||
return await translate(activity.string.AddedTag, { title: tagName })
|
||||
}
|
||||
if (update.action === 'remove') {
|
||||
const tagName = await translate(clazz.label, {})
|
||||
return await translate(activity.string.RemovedObjectType, { type: 'tag', title: tagName })
|
||||
return await translate(activity.string.RemovedTag, { title: tagName })
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
|
||||
Reference in New Issue
Block a user