Skip to content

Commit c54602a

Browse files
committed
Fix linting
1 parent 6d5e7e9 commit c54602a

16 files changed

+62
-43
lines changed

assets/javascripts/discourse/components/custom-field-input.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
disabled=this.saveDisabled
5252
class="save"
5353
}}
54-
{{d-button action=(action "close") icon="times" disabled=this.closeDisabled}}
54+
{{d-button
55+
action=(action "close")
56+
icon="times"
57+
disabled=this.closeDisabled
58+
}}
5559
</td>
5660
{{else}}
5761
<td><label>{{this.field.klass}}</label></td>

assets/javascripts/discourse/components/custom-field-input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default Component.extend({
122122
setTimeout(() => {
123123
if (this.isDestroyed) {
124124
return;
125-
};
125+
}
126126
this.set("saveIcon", null);
127127
}, 10000);
128128
});

assets/javascripts/discourse/components/custom-wizard-editor.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
<div class="d-editor-container">
44
{{#if this.showPreview}}
5-
<div class="d-editor-preview-wrapper {{if this.forcePreview 'force-preview'}}">
5+
<div
6+
class="d-editor-preview-wrapper {{if this.forcePreview 'force-preview'}}"
7+
>
68
<div class="d-editor-preview">
79
{{html-safe this.preview}}
810
</div>

assets/javascripts/discourse/components/custom-wizard-textarea-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ export default class CustomWizardTextareaEditor extends TextareaEditor {
3737
this.textarea.removeEventListener("input", this.onInputSmartList);
3838
}
3939
}
40-
}
40+
}

assets/javascripts/discourse/components/wizard-custom-field.hbs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@
271271
</div>
272272

273273
<div class="setting-value">
274-
{{wizard-mapper inputs=this.field.condition options=this.fieldConditionOptions}}
274+
{{wizard-mapper
275+
inputs=this.field.condition
276+
options=this.fieldConditionOptions
277+
}}
275278
</div>
276279
</div>
277280

@@ -303,6 +306,9 @@
303306
{{/if}}
304307

305308
{{#if this.validations}}
306-
{{wizard-realtime-validations field=this.field validations=this.validations}}
309+
{{wizard-realtime-validations
310+
field=this.field
311+
validations=this.validations
312+
}}
307313
{{/if}}
308314
{{/wizard-subscription-container}}

assets/javascripts/discourse/components/wizard-custom-step.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
</div>
4040

4141
<div class="setting-value">
42-
{{wizard-mapper inputs=this.step.condition options=this.stepConditionOptions}}
42+
{{wizard-mapper
43+
inputs=this.step.condition
44+
options=this.stepConditionOptions
45+
}}
4346
</div>
4447
</div>
4548

assets/javascripts/discourse/components/wizard-mapper-pair.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
{{/if}}
3636

3737
{{#if this.showRemove}}
38-
<a role="button" {{action this.removePair this.pair}} class="remove-pair">{{d-icon
39-
"times"
40-
}}</a>
38+
<a
39+
role="button"
40+
{{action this.removePair this.pair}}
41+
class="remove-pair"
42+
>{{d-icon "times"}}</a>
4143
{{/if}}

assets/javascripts/discourse/components/wizard-subscription-status.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<div class="supplier-authorize">
22
<WizardSubscriptionBadge />
33
{{#if this.authorized}}
4-
<ConditionalLoadingSpinner @condition={{this.unauthorizing}} @size="small" />
4+
<ConditionalLoadingSpinner
5+
@condition={{this.unauthorizing}}
6+
@size="small"
7+
/>
58
<DButton
69
class="deauthorize"
710
@title="admin.wizard.subscription.deauthorize.title"

assets/javascripts/discourse/components/wizard-text-editor.hbs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
{{d-editor value=this.value forcePreview=this.forcePreview placeholder=this.placeholder}}
1+
{{d-editor
2+
value=this.value
3+
forcePreview=this.forcePreview
4+
placeholder=this.placeholder
5+
}}
26

37
<div class="wizard-editor-gutter">
48
{{#if this.previewEnabled}}
5-
{{d-button action=(action "togglePreview") translatedLabel=this.previewLabel}}
9+
{{d-button
10+
action=(action "togglePreview")
11+
translatedLabel=this.previewLabel
12+
}}
613
{{/if}}
714

815
{{#if this.fieldsEnabled}}
9-
{{d-button action=(action "togglePopover") translatedLabel=this.popoverLabel}}
16+
{{d-button
17+
action=(action "togglePopover")
18+
translatedLabel=this.popoverLabel
19+
}}
1020

1121
{{#if this.showPopover}}
1222
<div class="wizard-editor-gutter-popover">

assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,16 @@ export default Controller.extend({
3131
}
3232
}
3333

34-
setTimeout(
35-
() => {
36-
if (this.isDestroyed) {
37-
return;
38-
}
39-
this.setProperties({
40-
messageKey: "create",
41-
messageType: null,
42-
messageOpts: null,
43-
});
44-
},
45-
10000
46-
);
34+
setTimeout(() => {
35+
if (this.isDestroyed) {
36+
return;
37+
}
38+
this.setProperties({
39+
messageKey: "create",
40+
messageType: null,
41+
messageOpts: null,
42+
});
43+
}, 10000);
4744

4845
return result;
4946
});

0 commit comments

Comments
 (0)