A platform for community discussion. Free, open, simple.
FIX: Missing link titles for upcoming change notifications (#37323)
Martin Brennand049ced97f58
diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex f84702b40ea..1113f2fff87 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -3348,7 +3348,8 @@ en:votes_released: "vote was released"new_features: "new discourse features have been released"admin_problems: "new advice on your site dashboard"- upcoming_change_available: "new upcoming change is available"+ upcoming_change_available: "new upcoming change '%{changeName}' is available"+ upcoming_change_automatically_promoted: "upcoming change '%{changeName}' has been automatically enabled"upload_selector:change: "Change"diff --git a/frontend/discourse/app/lib/notification-types/upcoming-change-automatically-promoted.js b/frontend/discourse/app/lib/notification-types/upcoming-change-automatically-promoted.jsindex 4d09852c543..3c169971a11 100644--- a/frontend/discourse/app/lib/notification-types/upcoming-change-automatically-promoted.js+++ b/frontend/discourse/app/lib/notification-types/upcoming-change-automatically-promoted.js@@ -7,6 +7,12 @@ export default class extends NotificationTypeBase {return i18n("notifications.upcoming_changes.automatically_promoted.title");}+ get linkTitle() {+ return i18n("notifications.titles.upcoming_change_automatically_promoted", {+ changeName: this.notification.data.upcoming_change_humanized_name,+ });+ }+get description() {return i18n("notifications.upcoming_changes.automatically_promoted.description",diff --git a/frontend/discourse/app/lib/notification-types/upcoming-change-available.js b/frontend/discourse/app/lib/notification-types/upcoming-change-available.jsindex 9ff9a7793fd..a63775fb309 100644--- a/frontend/discourse/app/lib/notification-types/upcoming-change-available.js+++ b/frontend/discourse/app/lib/notification-types/upcoming-change-available.js@@ -7,6 +7,12 @@ export default class extends NotificationTypeBase {return i18n("notifications.upcoming_changes.available.title");}+ get linkTitle() {+ return i18n("notifications.titles.upcoming_change_available", {+ changeName: this.notification.data.upcoming_change_humanized_name,+ });+ }+get description() {return i18n("notifications.upcoming_changes.available.description", {changeName: this.notification.data.upcoming_change_humanized_name,