File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -115,17 +115,7 @@ export class HtmlQueryResultsRenderer extends QueryResultsRendererBase {
115115 }
116116 }
117117
118- protected async addTaskList ( listItems : ListItem [ ] ) : Promise < void > {
119- this . beginTaskList ( ) ;
120-
121- if ( this . getters . query ( ) . queryLayoutOptions . hideTree ) {
122- await this . addFlatTaskList ( listItems ) ;
123- } else {
124- await this . addTreeTaskList ( listItems ) ;
125- }
126- }
127-
128- private beginTaskList ( ) : void {
118+ protected beginTaskList ( ) : void {
129119 const taskList = this . currentULElement ( ) ;
130120 taskList . classList . add (
131121 'contains-task-list' ,
Original file line number Diff line number Diff line change @@ -122,7 +122,17 @@ export abstract class QueryResultsRendererBase {
122122
123123 protected abstract addTaskGroup ( group : TaskGroup ) : Promise < void > ;
124124
125- protected abstract addTaskList ( listItems : ListItem [ ] ) : Promise < void > ;
125+ protected async addTaskList ( listItems : ListItem [ ] ) : Promise < void > {
126+ this . beginTaskList ( ) ;
127+
128+ if ( this . getters . query ( ) . queryLayoutOptions . hideTree ) {
129+ await this . addFlatTaskList ( listItems ) ;
130+ } else {
131+ await this . addTreeTaskList ( listItems ) ;
132+ }
133+ }
134+
135+ protected abstract beginTaskList ( ) : void ;
126136
127137 /**
128138 * Old-style rendering of tasks:
You can’t perform that action at this time.
0 commit comments