[pve-devel] [PATCH manager 5/5] add summary to the ceph warning window

Dominik Csapak d.csapak at proxmox.com
Wed Aug 9 11:42:56 CEST 2017


and format it better

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/Status.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index 132c5e0a..b0527337 100644
--- a/www/manager6/ceph/Status.js
+++ b/www/manager6/ceph/Status.js
@@ -90,7 +90,10 @@ Ext.define('PVE.node.CephStatus', {
 						scrollable: true,
 						padding: '10',
 						xtype: 'box',
-						html: record.data.detail
+						html: [
+						    '<span>' + record.data.summary + '</span>',
+						    '<pre>'+ record.data.detail+ '</pre>'
+						]
 					    }]
 					});
 					win.show();
@@ -179,7 +182,7 @@ Ext.define('PVE.node.CephStatus', {
 	    result.push({
 		id: key,
 		summary: checks[key].message,
-		detail: details.join("<br>\n"),
+		detail: details.join("\n"),
 		severity: checks[key].severity
 	    });
 	});
-- 
2.11.0




More information about the pve-devel mailing list