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

View File

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

View File

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