From 8ca2aef55661ff0e88bc23180b87bb26c224a973 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 24 Jan 2024 14:08:19 +0100 Subject: [PATCH] DEV: Add missing service injections to app route (#25401) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …so "site" and "currentUser" (and sort all of them) --- .../discourse/app/routes/application.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/discourse/app/routes/application.js b/app/assets/javascripts/discourse/app/routes/application.js index 3f5bec02b13..ee8a2fd8b6f 100644 --- a/app/assets/javascripts/discourse/app/routes/application.js +++ b/app/assets/javascripts/discourse/app/routes/application.js @@ -33,16 +33,19 @@ function unlessStrictlyReadOnly(method, message) { const ApplicationRoute = DiscourseRoute.extend({ siteTitle: setting("title"), shortSiteDescription: setting("short_site_description"), - documentTitle: service(), - dialog: service(), - composer: service(), - modal: service(), - loadingSlider: service(), - router: service(), - siteSettings: service(), + clientErrorHandler: service(), - login: service(), + composer: service(), + currentUser: service(), + dialog: service(), + documentTitle: service(), historyStore: service(), + loadingSlider: service(), + login: service(), + modal: service(), + router: service(), + site: service(), + siteSettings: service(), get isOnlyOneExternalLoginMethod() { return (