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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
change the description while there is no notification after selecting the menu filter
bsatarnejadb519ca98e459
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex e6ccfca0d50..266ea8f7e16 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -609,7 +609,8 @@ en:total_count_warning: "Showing the %{newest_count} most recent notifications. %{more_count} more are not displayed."empty_state:no_notification: "Looks like you're all caught up."- no_notification_with_current_filter: "Change of involvement or go back to the Inbox to view notifications"+ no_notification_with_current_project_filter: "Change of involvement or go back to the Inbox to view notifications."+ no_notification_with_current_filter: "Looks like you're all caught up for %{filter} filter"no_selection: "Click on a notification to view all activity details."new_notifications:message: 'There are new notifications.'diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.tsindex 3dad937ab75..31fe3eafe47 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts@@ -62,6 +62,27 @@ export class InAppNotificationCenterComponent implements OnInit {originalOrder = ():number => 0;+ reasonMenuItems = [+ {+ key: 'mentioned',+ title: this.I18n.t('js.notifications.menu.mentioned'),+ },+ {+ key: 'assigned',+ title: this.I18n.t('js.label_assignee'),+ },+ {+ key: 'responsible',+ title: this.I18n.t('js.notifications.menu.accountable'),+ },+ {+ key: 'watched',+ title: this.I18n.t('js.notifications.menu.watching'),+ },+ ];++ selectedFilter = this.reasonMenuItems.find((item) => item.key === this.uiRouterGlobals.params.name)?.title;+image = {no_notification: imagePath('notification-center/empty-state-no-notification.svg'),no_selection: imagePath('notification-center/empty-state-no-selection.svg'),@@ -74,7 +95,8 @@ export class InAppNotificationCenterComponent implements OnInit {text = {no_notification: this.I18n.t('js.notifications.center.empty_state.no_notification'),- no_notification_with_current_filter: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_filter'),+ no_notification_with_current_filter_project: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_filter'),+ no_notification_with_current_filter: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_filter', { filter: this.selectedFilter }),no_selection: this.I18n.t('js.notifications.center.empty_state.no_selection'),change_notification_settings: this.I18n.t('js.notifications.settings.change_notification_settings',@@ -110,6 +132,8 @@ export class InAppNotificationCenterComponent implements OnInit {}noNotificationText(hasNotifications:boolean, totalNotifications:number):string {- return (!hasNotifications && totalNotifications > 0) ? this.text.no_notification_with_current_filter : this.text.no_notification;+ return (!hasNotifications && totalNotifications > 0)+ ? (this.uiRouterGlobals.params.filter === 'project' ? this.text.no_notification_with_current_filter_project : this.text.no_notification_with_current_filter)+ : this.text.no_notification;}}