refactor(task-list): update subtask and indicator visibility logic
- Modified subtask visibility conditions across TaskCard, EnhancedKanbanTaskCard, KanbanTaskCard, and TaskRow components to only display when the count is greater than 1. - Enhanced task indicators for comments and attachments to follow the same visibility logic. - Added new dependencies for task management types to support subscriber and attachment features.
This commit is contained in:
@@ -195,12 +195,12 @@ const KanbanTaskCard: React.FC<TaskRowProps> = ({
|
||||
<ClockCircleOutlined /> {task.time_spent_string}
|
||||
</span>
|
||||
)}
|
||||
{task.comments_count && task.comments_count > 0 && (
|
||||
{task.comments_count && task.comments_count > 1 && (
|
||||
<span className="kanban-task-indicator">
|
||||
<MessageOutlined /> {task.comments_count}
|
||||
</span>
|
||||
)}
|
||||
{task.attachments_count && task.attachments_count > 0 && (
|
||||
{task.attachments_count && task.attachments_count > 1 && (
|
||||
<span className="kanban-task-indicator">
|
||||
<PaperClipOutlined /> {task.attachments_count}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user