DEV: Add missing service injections to app route (#25401)

…so "site" and "currentUser" (and sort all of them)
This commit is contained in:
Jarek Radosz 2024-01-24 14:08:19 +01:00 committed by GitHub
parent 070a8414ea
commit 8ca2aef556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 (