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
Update IAN center no_results text
Oliver Günther11115a988e89
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 9f004f80697..eee59b33dfa 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -617,7 +617,7 @@ en:one: 'and 1 other'other: 'and %{count} others'no_results:- at_all: 'New notifications will appear here when there is activity that concerns you, in the mean time you can also view and modify your notification settings to configure when to be notified.'+ at_all: 'New notifications will appear here when there is activity that concerns you.'with_current_filter: 'There are no notifications in this view at the moment'mark_all_read: 'Mark all as read'mark_as_read: 'Mark as read'@@ -640,7 +640,7 @@ en:watched: 'Watcher'date_alert: 'Date alert'settings:- change_notification_settings: 'To view and change your notification settings, <a target="_blank" href="%{url}">click here</a>'+ change_notification_settings: 'You can modify your <a target="_blank" href="%{url}">notification settings</a> to ensure you never miss an important update'title: "Notification settings"notify_me: "Notify me"reminders:diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.htmlindex 03a35ac745b..bd7192d0559 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html@@ -27,7 +27,14 @@<span [textContent]="noNotificationText(hasNotifications, (totalCount$ | async))"></span></p>- <span [textContent]="noResultText$ | async"></span>+ <span+ *ngIf="(totalCount$ | async) > 0"+ [textContent]="text.no_results.with_current_filter"+ ></span>+ <ng-container *ngIf="(totalCount$ | async) === 0">+ <p [textContent]="text.no_results.at_all"></p>+ <p [innerHTML]="text.change_notification_settings"></p>+ </ng-container></div></ng-template></ng-container>diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sassindex aba5417996f..4a7d2a61a54 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass@@ -26,7 +26,7 @@top: 50%transform: translate(-50%, -50%)text-align: center- max-width: 600px+ max-width: 650px@media screen and (max-width: 679px)left: 0diff --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 2656e5cff89..933f5d751c8 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@@ -39,13 +39,7 @@ export class InAppNotificationCenterComponent implements OnInit {loading$ = this.storeService.loading$;- private totalCount$ = this.bellService.unread$;-- noResultText$ = this- .totalCount$- .pipe(- map((count:number) => (count > 0 ? this.text.no_results.with_current_filter : this.text.no_results.at_all)),- );+ totalCount$ = this.bellService.unread$;totalCountWarning$ = this.storeService@@ -109,7 +103,10 @@ export class InAppNotificationCenterComponent implements OnInit {title: this.I18n.t('js.notifications.title'),button_close: this.I18n.t('js.button_close'),no_results: {- at_all: this.I18n.t('js.notifications.center.no_results.at_all'),+ at_all: this.I18n.t(+ 'js.notifications.center.no_results.at_all',+ { url: this.pathService.myNotificationsSettingsPath() },+ ),with_current_filter: this.I18n.t('js.notifications.center.no_results.with_current_filter'),},};