File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
framework/core/js/src/forum/components Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,21 @@ export default class DiscussionPage<CustomAttrs extends IDiscussionPageAttrs = I
79
79
}
80
80
}
81
81
82
- view ( ) {
83
- return (
84
- < div className = "DiscussionPage" >
85
- < DiscussionListPane state = { app . discussions } />
86
- < div className = "DiscussionPage-discussion" > { this . discussion ? this . pageContent ( ) . toArray ( ) : this . loadingItems ( ) . toArray ( ) } </ div >
87
- </ div >
82
+ view ( ) : Mithril . Children {
83
+ return < div className = "DiscussionPage" > { this . viewItems ( ) . toArray ( ) } </ div > ;
84
+ }
85
+
86
+ viewItems ( ) : ItemList < Mithril . Children > {
87
+ const items = new ItemList < Mithril . Children > ( ) ;
88
+
89
+ items . add ( 'pane' , < DiscussionListPane state = { app . discussions } /> , 100 ) ;
90
+ items . add (
91
+ 'discussions' ,
92
+ < div className = "DiscussionPage-discussion" > { this . discussion ? this . pageContent ( ) . toArray ( ) : this . loadingItems ( ) . toArray ( ) } </ div > ,
93
+ 90
88
94
) ;
95
+
96
+ return items ;
89
97
}
90
98
91
99
/**
You can’t perform that action at this time.
0 commit comments