Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Don't hide notification date to show mark as read button if the notification is already read

Benjamin Bädorf549101f5f0d5
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
index a2daaeb14b5..396e01d1a31 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
@@ -1,6 +1,7 @@
<div
class="op-ian-item"
[class.op-ian-item_expanded]="notification.expanded"
+ [class.op-ian-item_read]="notification.readIAN === true"
attr.data-qa-selector="op-ian-notification-item-{{notification.id}}"
[attr.data-qa-ian-read]="notification.readIAN === true || undefined"
>
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
index 14e1fa454b7..5538acd73d5 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
@@ -98,7 +98,7 @@ $subject-font-size: 14px
@media screen and (max-width: 679px)
justify-self: end
- &:hover &--date,
+ &:not(#{&}_read):hover &--date,
&--buttons:focus-within + &--date
opacity: 0
@@ -127,6 +127,6 @@ $subject-font-size: 14px
@media screen and (max-width: 679px)
display: none
- &:hover &--button,
+ &:not(#{&}_read):hover &--button,
&--button:focus
opacity: 1