MCPcopy
hub / github.com/callumalpass/tasknotes / shouldShowPriorityIndicator

Function shouldShowPriorityIndicator

src/ui/taskCardPrimaryIndicators.ts:40–48  ·  view source on GitHub ↗
(
	visibleProperties: string[] | undefined,
	plugin: TaskNotesPlugin
)

Source from the content-addressed store, hash-verified

38}
39
40export function shouldShowPriorityIndicator(
41 visibleProperties: string[] | undefined,
42 plugin: TaskNotesPlugin
43): boolean {
44 return (
45 !visibleProperties ||
46 visibleProperties.some((prop) => isPropertyForField(prop, "priority", plugin))
47 );
48}
49
50export function applyTaskCardStatusColors(
51 card: HTMLElement,

Callers 2

createPriorityIndicatorFunction · 0.85
updatePriorityIndicatorFunction · 0.85

Calls 1

isPropertyForFieldFunction · 0.90

Tested by

no test coverage detected