Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
Wrap import in wizard check
Dieser Commit ist enthalten in:
Ursprung
545dc615c2
Commit
1087facb54
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
|
@ -1,10 +1,9 @@
|
||||||
import CustomWizard from "../models/custom";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "custom-wizard-step",
|
name: "custom-wizard-step",
|
||||||
initialize(app) {
|
initialize(app) {
|
||||||
if (window.location.pathname.indexOf("/w/") < 0) return;
|
if (window.location.pathname.indexOf("/w/") < 0) return;
|
||||||
|
|
||||||
|
const CustomWizard = requirejs("discourse/plugins/discourse-custom-wizard/wizard/models/custom").default;
|
||||||
const StepModel = requirejs("wizard/models/step").default;
|
const StepModel = requirejs("wizard/models/step").default;
|
||||||
const StepComponent = requirejs("wizard/components/wizard-step").default;
|
const StepComponent = requirejs("wizard/components/wizard-step").default;
|
||||||
const ajax = requirejs("wizard/lib/ajax").ajax;
|
const ajax = requirejs("wizard/lib/ajax").ajax;
|
||||||
|
|
Laden …
In neuem Issue referenzieren