[IMP] make the kanban subtask button clickable everywhere
This commit button makes the kanban substack button clickable everywhere - both in the icon and the x/y indication next to it. Additionally, this commit also makes it that the tooltip on hover is shown when the user hovers over both the icon and the x/y indication. Task-3284498 closes odoo/odoo#119468 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -28,6 +28,10 @@ export class ProjectTaskKanbanCompiler extends KanbanCompiler {
|
||||
compiled.setAttribute(name, value);
|
||||
}
|
||||
|
||||
for (const child of el.childNodes) {
|
||||
append(compiled, this.compileNode(child));
|
||||
}
|
||||
|
||||
return compiled;
|
||||
}
|
||||
|
||||
|
||||
@@ -606,14 +606,15 @@
|
||||
<i title="Private Task" class="fa fa-lock"/>
|
||||
</a>
|
||||
<t t-if="!record.is_private.raw_value and record.subtask_count.raw_value">
|
||||
<div t-attf-class="{{record.subtask_count.value > record.closed_subtask_count.value}}"></div>
|
||||
<a t-if="!record.is_private.raw_value and record.subtask_count.raw_value and record.subtask_count.value > record.closed_subtask_count.value" class="text-muted">
|
||||
<span t-attf-title="{{ record.closed_subtask_count.value }} sub-tasks closed out of {{ record.subtask_count.value }}" class="subtask_list_button fa fa-check-square-o me-1"/>
|
||||
<t t-out="record.closed_subtask_count.value"/>/<t t-out="record.subtask_count.value"/>
|
||||
<a t-if="!record.is_private.raw_value and record.subtask_count.raw_value and record.subtask_count.value > record.closed_subtask_count.value"
|
||||
t-attf-title="{{ record.closed_subtask_count.value }} sub-tasks closed out of {{ record.subtask_count.value }}"
|
||||
class="subtask_list_button text-muted">
|
||||
<span class="fa fa-check-square-o me-1"/>
|
||||
<t t-out="record.closed_subtask_count.value + '/' + record.subtask_count.value"/>
|
||||
</a>
|
||||
<div t-else="" class="text-muted">
|
||||
<span t-attf-title="{{ record.closed_subtask_count.value }} sub-tasks closed out of {{ record.subtask_count.value }}" class="fa fa-check-square-o me-1"/>
|
||||
<t t-out="record.closed_subtask_count.value"/>/<t t-out="record.subtask_count.value"/>
|
||||
<div t-else="" t-attf-title="{{ record.closed_subtask_count.value }} sub-tasks closed out of {{ record.subtask_count.value }}" class="text-muted">
|
||||
<span class="fa fa-check-square-o me-1"/>
|
||||
<t t-out="record.closed_subtask_count.value + '/' + record.subtask_count.value"/>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user