File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed
assets/javascripts/discourse
connectors/category-custom-settings Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 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" }}
1211 @options ={{ hash none =" admin.wizard.select" }}
1312 />
1413 </div >
15- </section >
14+ </section >
Original file line number Diff line number Diff line change 1- <CustomWizardCategorySettings @category ={{ this.category }} />
1+ <CustomWizardCategorySettings @category ={{ this.category }} />
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments