From f2a0f0ec72119677a43adc0a650aed2f8a63dd06 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 Oct 2023 15:27:45 +0200 Subject: [PATCH] ui: ceph warnings: switch copy-details to copy-all With health level, summary and full details. Signed-off-by: Thomas Lamprecht --- www/manager6/ceph/Status.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js index 590a46b3..bedd4e14 100644 --- a/www/manager6/ceph/Status.js +++ b/www/manager6/ceph/Status.js @@ -147,7 +147,7 @@ Ext.define('PVE.node.CephStatus', { items: [ { iconCls: 'x-fa fa-files-o', - tooltip: gettext('Copy summary'), + tooltip: gettext('Copy Summary'), handler: function(grid, rowindex, colindex, item, e, record) { navigator.clipboard .writeText(record.data.summary) @@ -156,10 +156,10 @@ Ext.define('PVE.node.CephStatus', { }, { iconCls: 'x-fa fa-clipboard', - tooltip: gettext('Copy details'), - handler: function(grid, rowindex, colindex, item, e, record) { + tooltip: gettext('Copy All'), + handler: function(grid, rowindex, colindex, item, e, { data }) { navigator.clipboard - .writeText(record.data.detail) + .writeText(`${data.severity}: ${data.summary}\n${data.detail}`) .catch(err => Ext.Msg.alert(gettext('Error'), err)); }, }, -- 2.39.2