Skip to content

Commit 0731fe6

Browse files
committed
fix linting
1 parent 250ed79 commit 0731fe6

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

assets/javascripts/discourse/components/custom-wizard-category-settings.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<h3>{{i18n "admin.wizard.category_settings.custom_wizard.title"}}</h3>
2-
32
<section class="field new-topic-wizard">
43
<label for="new-topic-wizard">
54
{{i18n "admin.wizard.category_settings.custom_wizard.create_topic_wizard"}}
@@ -12,4 +11,4 @@
1211
@options={{hash none="admin.wizard.select"}}
1312
/>
1413
</div>
15-
</section>
14+
</section>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<CustomWizardCategorySettings @category={{this.category}} />
1+
<CustomWizardCategorySettings @category={{this.category}} />

assets/javascripts/discourse/initializers/custom-wizard-edits.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ export default {
2626
withPluginApi("0.8.36", (api) => {
2727
api.modifyClass(
2828
"component:d-navigation",
29-
(Superclass) =>
29+
(Superclass) =>
3030
class extends Superclass {
3131
@action
32-
clickCreateTopicButton() {
33-
let createTopicWizard = this.get(
34-
"category.custom_fields.create_topic_wizard"
35-
);
36-
if (createTopicWizard) {
37-
window.location.href = getUrl(`/w/${createTopicWizard}`);
38-
} else {
39-
super.clickCreateTopicButton();
40-
}
32+
clickCreateTopicButton() {
33+
let createTopicWizard = this.get(
34+
"category.custom_fields.create_topic_wizard"
35+
);
36+
if (createTopicWizard) {
37+
window.location.href = getUrl(`/w/${createTopicWizard}`);
38+
} else {
39+
super.clickCreateTopicButton();
4140
}
41+
}
4242
}
43-
);
43+
);
4444

4545
api.modifyClass("component:d-editor", {
4646
pluginId: "custom-wizard",

0 commit comments

Comments
 (0)