From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id EC2851FF15F for <inbox@lore.proxmox.com>; Mon, 18 Nov 2024 11:45:33 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1F6BECF70; Mon, 18 Nov 2024 11:45:34 +0100 (CET) From: Aaron Lauterer <a.lauterer@proxmox.com> To: pve-devel@lists.proxmox.com Date: Mon, 18 Nov 2024 11:45:30 +0100 Message-Id: <20241118104530.91798-4-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241118104530.91798-1-a.lauterer@proxmox.com> References: <20241118104530.91798-1-a.lauterer@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.035 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager v3 3/3] ui: tasks: add actioncolumn to open task X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> Many (new) users don't realize that the task view can be used to open the task details. By adding a small action column we can have a button to open the task as well, next to double clicking it. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com> --- I placed the actioncolumn at the end. See the cover letter for the reasoning. Placing it anywhere else in the grid should just be a yank/paste. change since v2: * use "View Task" instead of "Show Task" in the tooltip v1: * use the `rec` parameter directly instead of fetching if from the grid store www/manager6/dc/Tasks.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/www/manager6/dc/Tasks.js b/www/manager6/dc/Tasks.js index 9405f9a2..c43218ce 100644 --- a/www/manager6/dc/Tasks.js +++ b/www/manager6/dc/Tasks.js @@ -127,6 +127,25 @@ Ext.define('PVE.dc.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, + }); + }, + }, + ], + }, ], listeners: { itemdblclick: run_task_viewer, -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel