A platform for community discussion. Free, open, simple.
DEV: Update deprecation banner to include id and remove Ember 5 link (#25786)
David Taylora30b54be87cc
diff --git a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.jsindex 6d8d758c60e..c9b7e084c17 100644--- a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js+++ b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js@@ -82,7 +82,9 @@ export default class DeprecationWarningHandler extends Service {notifyAdmin(id, source) {this.#adminWarned = true;- let notice = I18n.t("critical_deprecation.notice");+ let notice = I18n.t("critical_deprecation.notice", {+ id: escapeExpression(id),+ });if (this.siteSettings.warn_critical_js_deprecations_message) {notice += " " + this.siteSettings.warn_critical_js_deprecations_message;diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 2a37c872f8a..9db0f75dd4b 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -226,7 +226,7 @@ en:broken_plugin_alert: "Caused by plugin '%{name}'"critical_deprecation:- notice: "<b>[Admin Notice]</b> One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes (<a target='_blank' href='https://meta.discourse.org/t/287211'>more info</a>)."+ notice: "<b>[Admin Notice]</b> One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes (id:<em>%{id}</em>)."theme_source: "Identified theme: <a target='_blank' href='%{path}'>'%{name}'</a>."plugin_source: "Identified plugin: '%{name}'"