ceph dashboard: better format the warning detail window

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@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-08-25 10:23:29 +02:00 committed by Fabian Grünbichler
parent 37f01f69da
commit b01e7f7a20

View File

@ -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();