Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
DEV: site-settings:main has been replaced with service:site-settings
Dieser Commit ist enthalten in:
Ursprung
5c6b66e730
Commit
6a1f8c9cb7
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Laden …
In neuem Issue referenzieren