( visibleProperties: string[] | undefined, plugin: TaskNotesPlugin, hideStatusIndicator = false )
| 26 | } |
| 27 | |
| 28 | export function shouldShowStatusIndicator( |
| 29 | visibleProperties: string[] | undefined, |
| 30 | plugin: TaskNotesPlugin, |
| 31 | hideStatusIndicator = false |
| 32 | ): boolean { |
| 33 | return ( |
| 34 | !hideStatusIndicator && |
| 35 | (!visibleProperties || |
| 36 | visibleProperties.some((prop) => isPropertyForField(prop, "status", plugin))) |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | export function shouldShowPriorityIndicator( |
| 41 | visibleProperties: string[] | undefined, |
no test coverage detected