From 16467b8918b3a4a74c9bfc78cf374627fbde635f Mon Sep 17 00:00:00 2001 From: Henriette Darge Date: Tue, 19 Oct 2021 09:32:55 +0200 Subject: [PATCH] Use no_results component for notification center page. Therefore the HTML of the no-results box was a bit harmonised throughout the system. --- config/locales/js-en.yml | 8 ++++++-- .../in-app-notification-center.component.html | 14 ++++++------- .../in-app-notification-center.component.ts | 20 +++++++++++++------ .../no-results/no-results.component.html | 8 ++++++-- .../no-results/no-results.component.ts | 2 ++ frontend/src/global_styles/content/_table.lsg | 4 ++-- .../src/global_styles/content/_table.sass | 12 ++++++----- .../content/work_packages/_table_content.lsg | 4 ++-- modules/reporting/lib/widget/table.rb | 2 +- 9 files changed, 46 insertions(+), 28 deletions(-) diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index e2af859f8d..a659b376ee 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -572,6 +572,9 @@ en: and_more_users: one: 'and 1 other' other: 'and %{count} others' + no_results: + 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' text_update_date: "%{date} by" @@ -589,10 +592,11 @@ en: mentioned: '@mentioned' watching: 'Watching' settings: + change_notification_settings: 'To view and change your notification settings, click here' title: "Notification settings" notify_me: "Notify me" - reasons: - mentioned: + reasons: + mentioned: title: 'I am @mentioned' description: 'Receive a notification every time someone mentions me anywhere' involved: 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.html index 44fc0b4dbe..e71d2210db 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 @@ -24,14 +24,12 @@ -
- - - {{ noResultText$ | async }} - -
+ +