File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change
1
+ export function generateHiddenClassForTaskList ( taskListHiddenClasses : string [ ] , hide : boolean , component : string ) {
2
+ if ( hide ) {
3
+ taskListHiddenClasses . push ( hiddenComponentClassName ( component ) ) ;
4
+ }
5
+ }
6
+
7
+ function hiddenComponentClassName ( component : string ) {
8
+ return `tasks-layout-hide-${ component } ` ;
9
+ }
Original file line number Diff line number Diff line change 1
- import { TaskLayoutOptions } from './TaskLayoutOptions ' ;
1
+ import { generateHiddenClassForTaskList } from './LayoutHelpers ' ;
2
2
import { QueryLayoutOptions } from './QueryLayoutOptions' ;
3
+ import { TaskLayoutOptions } from './TaskLayoutOptions' ;
3
4
4
5
export type TaskLayoutComponent =
5
6
// NEW_TASK_FIELD_EDIT_REQUIRED
@@ -67,16 +68,6 @@ export class QueryLayout {
67
68
}
68
69
}
69
70
70
- function generateHiddenClassForTaskList ( taskListHiddenClasses : string [ ] , hide : boolean , component : string ) {
71
- if ( hide ) {
72
- taskListHiddenClasses . push ( hiddenComponentClassName ( component ) ) ;
73
- }
74
- }
75
-
76
- function hiddenComponentClassName ( component : string ) {
77
- return `tasks-layout-hide-${ component } ` ;
78
- }
79
-
80
71
/**
81
72
* This represents the desired layout of tasks when they are rendered in a given configuration.
82
73
* The layout is used when flattening the task to a string and when rendering queries, and can be
You can’t perform that action at this time.
0 commit comments