ui: tasl summary: add pointer cursor if clickable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-09 18:09:05 +01:00
parent 376e927980
commit d9503950e3

View File

@ -200,7 +200,11 @@ Ext.define('PBS.TaskSummary', {
render_count: function(value, md, record, rowindex, colindex) {
let me = this;
let view = me.getView();
let icon = me.render_icon(view.states[colindex], value || 0);
let count = value || 0;
if (count > 0) {
md.tdCls = 'pointer';
}
let icon = me.render_icon(view.states[colindex], count);
return `${icon} ${value || 0}`;
},
},