EZQMS-459: Hoisted showNotify calculation to ActivityNotificationPresenter (#4937)

Signed-off-by: Petr Vyazovetskiy <develop.pit@gmail.com>
This commit is contained in:
Pete Anøther 2024-03-12 13:25:39 -03:00 committed by GitHub
parent 9086a280a7
commit 2e60a8dc23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -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}

View File

@ -36,6 +36,6 @@
{actions}
{excludedActions}
hoverable={false}
showNotify={showNotify && !notification.isViewed}
{showNotify}
{onClick}
/>

View File

@ -124,7 +124,7 @@
notification: value,
embedded,
withActions,
showNotify,
showNotify: showNotify ? !value.isViewed && !embedded : false,
actions,
onClick
}}