0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

Fixes from the cherry picks

Dieser Commit ist enthalten in:
Angus McLeod 2022-06-15 09:08:28 +02:00
Ursprung f3c5eeb371
Commit af93a67bb1
6 geänderte Dateien mit 6 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -25,7 +25,7 @@ export default ComposerEditor.extend({
lastValidatedAt: "lastValidatedAt", lastValidatedAt: "lastValidatedAt",
popupMenuOptions: [], popupMenuOptions: [],
draftStatus: "null", draftStatus: "null",
replyPlaceholder: alias("field.placeholder"), replyPlaceholder: alias("field.translatedPlaceholder"),
uploadingFieldId: null, uploadingFieldId: null,
@on("didInsertElement") @on("didInsertElement")

Datei anzeigen

@ -1,5 +1,5 @@
export default { export default {
run(_, container) { run(app, container) {
const getToken = requirejs("wizard/lib/ajax").getToken; const getToken = requirejs("wizard/lib/ajax").getToken;
const isTesting = requirejs("discourse-common/config/environment") const isTesting = requirejs("discourse-common/config/environment")
.isTesting; .isTesting;

Datei anzeigen

@ -57,6 +57,7 @@ CustomWizard.reopenClass({
wizardJson.steps = wizardJson.steps wizardJson.steps = wizardJson.steps
.map((step) => { .map((step) => {
const stepObj = Step.create(step); const stepObj = Step.create(step);
stepObj.wizardId = wizardJson.id;
stepObj.fields.sort((a, b) => { stepObj.fields.sort((a, b) => {
return parseFloat(a.number) - parseFloat(b.number); return parseFloat(a.number) - parseFloat(b.number);

Datei anzeigen

@ -1 +1 @@
{{input id=field.id value=field.value class=fieldClass placeholder=field.placeholder tabindex=field.tabindex autocomplete=autocomplete}} {{input id=field.id value=field.value class=fieldClass placeholder=field.translatedPlaceholder tabindex=field.tabindex autocomplete=autocomplete}}

Datei anzeigen

@ -1 +1 @@
{{textarea id=field.id value=field.value class=fieldClass placeholder=field.placeholder tabindex=field.tabindex}} {{textarea id=field.id value=field.value class=fieldClass placeholder=field.translatedPlaceholder tabindex=field.tabindex}}

Datei anzeigen

@ -1,5 +1,5 @@
<label for={{field.id}} class="field-label"> <label for={{field.id}} class="field-label">
{{html-safe field.label}} {{html-safe field.translatedLabel}}
</label> </label>
{{#if field.image}} {{#if field.image}}