0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-13 21:42:53 +01:00

DEV: site-settings:main has been replaced with service:site-settings

Dieser Commit ist enthalten in:
Angus McLeod 2022-08-15 13:53:31 +02:00
Ursprung 5c6b66e730
Commit 6a1f8c9cb7
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -6,7 +6,7 @@ import { observes } from "discourse-common/utils/decorators";
export default { export default {
name: "custom-wizard-edits", name: "custom-wizard-edits",
initialize(container) { initialize(container) {
const siteSettings = container.lookup("site-settings:main"); const siteSettings = container.lookup("service:site-settings");
if (!siteSettings.custom_wizard_enabled) { if (!siteSettings.custom_wizard_enabled) {
return; return;

Datei anzeigen

@ -6,7 +6,7 @@ export default {
initialize: function (container) { initialize: function (container) {
const messageBus = container.lookup("service:message-bus"); 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) { if (!siteSettings.custom_wizard_enabled || !messageBus) {
return; return;

Datei anzeigen

@ -226,7 +226,7 @@ export function buildFieldValidations(validations) {
wizardSchema.field.validations = 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) { if (siteSettings.wizard_apis_enabled) {
wizardSchema.action.types.send_to_api = { wizardSchema.action.types.send_to_api = {
api: null, api: null,