Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
FIX: Discourse.BaseUrl no longer works
Dieser Commit ist enthalten in:
Ursprung
80d470b25d
Commit
ac944dbb3e
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
|
@ -1,6 +1,7 @@
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
|
import getURL from "discourse-common/lib/get-url";
|
||||||
|
|
||||||
const CustomWizardManager = EmberObject.extend();
|
const CustomWizardManager = EmberObject.extend();
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ CustomWizardManager.reopenClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
export(wizardIds) {
|
export(wizardIds) {
|
||||||
let url = `${Discourse.BaseUrl}/${basePath}/export?`;
|
let url = `${getURL()}/${basePath}/export?`;
|
||||||
|
|
||||||
wizardIds.forEach((wizardId, index) => {
|
wizardIds.forEach((wizardId, index) => {
|
||||||
let step = "wizard_ids[]=" + wizardId;
|
let step = "wizard_ids[]=" + wizardId;
|
||||||
|
|
Laden …
In neuem Issue referenzieren