mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
EZQMS-459: Hoisted showNotify
calculation to ActivityNotificationPresenter
(#4937)
Signed-off-by: Petr Vyazovetskiy <develop.pit@gmail.com>
This commit is contained in:
parent
9086a280a7
commit
2e60a8dc23
@ -53,6 +53,7 @@
|
||||
value={parentMessage}
|
||||
skipLabel
|
||||
embedded
|
||||
{showNotify}
|
||||
{withActions}
|
||||
{actions}
|
||||
{excludedActions}
|
||||
@ -65,7 +66,7 @@
|
||||
value={message}
|
||||
skipLabel
|
||||
showEmbedded
|
||||
showNotify={showNotify && !notification.isViewed}
|
||||
{showNotify}
|
||||
{withActions}
|
||||
{actions}
|
||||
{excludedActions}
|
||||
|
@ -36,6 +36,6 @@
|
||||
{actions}
|
||||
{excludedActions}
|
||||
hoverable={false}
|
||||
showNotify={showNotify && !notification.isViewed}
|
||||
{showNotify}
|
||||
{onClick}
|
||||
/>
|
||||
|
@ -124,7 +124,7 @@
|
||||
notification: value,
|
||||
embedded,
|
||||
withActions,
|
||||
showNotify,
|
||||
showNotify: showNotify ? !value.isViewed && !embedded : false,
|
||||
actions,
|
||||
onClick
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user