From 6a1f8c9cb796b58011a145c06eeecd74fda966cb Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 15 Aug 2022 13:53:31 +0200 Subject: [PATCH] DEV: site-settings:main has been replaced with service:site-settings --- .../discourse/initializers/custom-wizard-edits.js.es6 | 2 +- .../discourse/initializers/custom-wizard-redirect.js.es6 | 2 +- assets/javascripts/discourse/lib/wizard-schema.js.es6 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 index dadf82f1..24159d44 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 @@ -6,7 +6,7 @@ import { observes } from "discourse-common/utils/decorators"; export default { name: "custom-wizard-edits", initialize(container) { - const siteSettings = container.lookup("site-settings:main"); + const siteSettings = container.lookup("service:site-settings"); if (!siteSettings.custom_wizard_enabled) { return; diff --git a/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 index 2dec112b..5667bdf8 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-redirect.js.es6 @@ -6,7 +6,7 @@ export default { initialize: function (container) { const messageBus = container.lookup("service:message-bus"); - const siteSettings = container.lookup("site-settings:main"); + const siteSettings = container.lookup("service:site-settings"); if (!siteSettings.custom_wizard_enabled || !messageBus) { return; diff --git a/assets/javascripts/discourse/lib/wizard-schema.js.es6 b/assets/javascripts/discourse/lib/wizard-schema.js.es6 index b47df7e6..f5a62c87 100644 --- a/assets/javascripts/discourse/lib/wizard-schema.js.es6 +++ b/assets/javascripts/discourse/lib/wizard-schema.js.es6 @@ -226,7 +226,7 @@ export function buildFieldValidations(validations) { wizardSchema.field.validations = validations; } -const siteSettings = getOwner(this).lookup("site-settings:main"); +const siteSettings = getOwner(this).lookup("service:site-settings"); if (siteSettings.wizard_apis_enabled) { wizardSchema.action.types.send_to_api = { api: null,