[pve-devel] [PATCH manager 2/2] ceph dashboard: better format the warning detail window
Dominik Csapak
d.csapak at proxmox.com
Fri Aug 25 10:23:29 CEST 2017
this adds the summary as first line,
and the long warning message as monospaced text (like on the console)
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/ceph/Status.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index 60260ed2..cda97867 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>' + Ext.htmlEncode(record.data.summary) + '</span>',
+ '<pre>' + Ext.htmlEncode(record.data.detail) + '</pre>'
+ ]
}]
});
win.show();
--
2.11.0
More information about the pve-devel
mailing list