mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-10-05 20:25:07 +00:00
node tasks: add action column with button to view task
This is primarily aimed to make it more discoverable that one can open tasks directly, instead of selecting and clicking the view button at the top. The chevron-right icon was chosen, to be more in alignmend with other places where we use it. For now, mainly PBS. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com> Tested-by: Friedrich Weber <f.weber@proxmox.com> [TL: reduce indentation level] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
267bc5972a
commit
04f612a65a
@ -441,6 +441,23 @@ Ext.define('Proxmox.node.Tasks', {
|
||||
return Proxmox.Utils.format_task_status(value);
|
||||
},
|
||||
},
|
||||
{
|
||||
xtype: 'actioncolumn',
|
||||
width: 30,
|
||||
align: 'center',
|
||||
tooltip: gettext('Actions'),
|
||||
items: [{
|
||||
iconCls: 'fa fa-chevron-right',
|
||||
tooltip: gettext('View Task'),
|
||||
handler: function(_grid, _rowIndex, _colIndex, _item, _e, rec) {
|
||||
Ext.create('Proxmox.window.TaskViewer', {
|
||||
autoShow: true,
|
||||
upid: rec.data.upid,
|
||||
endtime: rec.data.endtime,
|
||||
});
|
||||
},
|
||||
}],
|
||||
},
|
||||
],
|
||||
|
||||
initComponent: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user