1
0
Fork 0

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 {
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;

Datei anzeigen

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

Datei anzeigen

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