Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
FIX: breakage due to core changes (#107)
Dieser Commit ist enthalten in:
Ursprung
aca0fab74e
Commit
743af8edc5
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
|
@ -21,7 +21,7 @@ export default {
|
|||
actions: {
|
||||
willTransition(transition) {
|
||||
const redirectToWizard = this.get("currentUser.redirect_to_wizard");
|
||||
const excludedPaths = Discourse.SiteSettings.wizard_redirect_exclude_paths
|
||||
const excludedPaths = this.siteSettings.wizard_redirect_exclude_paths
|
||||
.split("|")
|
||||
.concat(["loading"]);
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { get, set } from "@ember/object";
|
||||
import { getOwner } from "discourse-common/lib/get-owner";
|
||||
|
||||
const wizard = {
|
||||
basic: {
|
||||
|
@ -222,7 +223,8 @@ export function buildFieldValidations(validations) {
|
|||
wizardSchema.field.validations = validations;
|
||||
}
|
||||
|
||||
if (Discourse.SiteSettings.wizard_apis_enabled) {
|
||||
const siteSettings = getOwner(this).lookup("site-settings:main");
|
||||
if (siteSettings.wizard_apis_enabled) {
|
||||
wizardSchema.action.types.send_to_api = {
|
||||
api: null,
|
||||
api_endpoint: null,
|
||||
|
|
Laden …
In neuem Issue referenzieren