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: {
|
actions: {
|
||||||
willTransition(transition) {
|
willTransition(transition) {
|
||||||
const redirectToWizard = this.get("currentUser.redirect_to_wizard");
|
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("|")
|
.split("|")
|
||||||
.concat(["loading"]);
|
.concat(["loading"]);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { get, set } from "@ember/object";
|
import { get, set } from "@ember/object";
|
||||||
|
import { getOwner } from "discourse-common/lib/get-owner";
|
||||||
|
|
||||||
const wizard = {
|
const wizard = {
|
||||||
basic: {
|
basic: {
|
||||||
|
@ -222,7 +223,8 @@ export function buildFieldValidations(validations) {
|
||||||
wizardSchema.field.validations = 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 = {
|
wizardSchema.action.types.send_to_api = {
|
||||||
api: null,
|
api: null,
|
||||||
api_endpoint: null,
|
api_endpoint: null,
|
||||||
|
|
Laden …
In neuem Issue referenzieren