Skip to content

Commit af93a67

Browse files
committed
Fixes from the cherry picks
1 parent f3c5eeb commit af93a67

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

assets/javascripts/wizard/components/wizard-composer-editor.js.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default ComposerEditor.extend({
2525
lastValidatedAt: "lastValidatedAt",
2626
popupMenuOptions: [],
2727
draftStatus: "null",
28-
replyPlaceholder: alias("field.placeholder"),
28+
replyPlaceholder: alias("field.translatedPlaceholder"),
2929
uploadingFieldId: null,
3030

3131
@on("didInsertElement")

assets/javascripts/wizard/lib/initialize/patch-components.js.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
run(_, container) {
2+
run(app, container) {
33
const getToken = requirejs("wizard/lib/ajax").getToken;
44
const isTesting = requirejs("discourse-common/config/environment")
55
.isTesting;

assets/javascripts/wizard/models/wizard.js.es6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CustomWizard.reopenClass({
5757
wizardJson.steps = wizardJson.steps
5858
.map((step) => {
5959
const stepObj = Step.create(step);
60+
stepObj.wizardId = wizardJson.id;
6061

6162
stepObj.fields.sort((a, b) => {
6263
return parseFloat(a.number) - parseFloat(b.number);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{input id=field.id value=field.value class=fieldClass placeholder=field.placeholder tabindex=field.tabindex autocomplete=autocomplete}}
1+
{{input id=field.id value=field.value class=fieldClass placeholder=field.translatedPlaceholder tabindex=field.tabindex autocomplete=autocomplete}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{textarea id=field.id value=field.value class=fieldClass placeholder=field.placeholder tabindex=field.tabindex}}
1+
{{textarea id=field.id value=field.value class=fieldClass placeholder=field.translatedPlaceholder tabindex=field.tabindex}}

assets/javascripts/wizard/templates/components/wizard-field.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<label for={{field.id}} class="field-label">
2-
{{html-safe field.label}}
2+
{{html-safe field.translatedLabel}}
33
</label>
44

55
{{#if field.image}}

0 commit comments

Comments
 (0)