0
0
Fork 1
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:
Angus McLeod 2020-10-05 13:40:51 +11:00
Ursprung 545dc615c2
Commit 1087facb54

Datei anzeigen

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