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}
|
value={parentMessage}
|
||||||
skipLabel
|
skipLabel
|
||||||
embedded
|
embedded
|
||||||
|
{showNotify}
|
||||||
{withActions}
|
{withActions}
|
||||||
{actions}
|
{actions}
|
||||||
{excludedActions}
|
{excludedActions}
|
||||||
@ -65,7 +66,7 @@
|
|||||||
value={message}
|
value={message}
|
||||||
skipLabel
|
skipLabel
|
||||||
showEmbedded
|
showEmbedded
|
||||||
showNotify={showNotify && !notification.isViewed}
|
{showNotify}
|
||||||
{withActions}
|
{withActions}
|
||||||
{actions}
|
{actions}
|
||||||
{excludedActions}
|
{excludedActions}
|
||||||
|
@ -36,6 +36,6 @@
|
|||||||
{actions}
|
{actions}
|
||||||
{excludedActions}
|
{excludedActions}
|
||||||
hoverable={false}
|
hoverable={false}
|
||||||
showNotify={showNotify && !notification.isViewed}
|
{showNotify}
|
||||||
{onClick}
|
{onClick}
|
||||||
/>
|
/>
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
notification: value,
|
notification: value,
|
||||||
embedded,
|
embedded,
|
||||||
withActions,
|
withActions,
|
||||||
showNotify,
|
showNotify: showNotify ? !value.isViewed && !embedded : false,
|
||||||
actions,
|
actions,
|
||||||
onClick
|
onClick
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user