mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 05:26:01 +00:00
ui: notes view: render node and guest notes as Markdown
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a78362cf06
commit
236b33e2b2
@ -3,7 +3,6 @@ Ext.define('PVE.panel.NotesView', {
|
|||||||
xtype: 'pveNotesView',
|
xtype: 'pveNotesView',
|
||||||
|
|
||||||
title: gettext("Notes"),
|
title: gettext("Notes"),
|
||||||
bodyStyle: 'white-space:pre',
|
|
||||||
bodyPadding: 10,
|
bodyPadding: 10,
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
animCollapse: false,
|
animCollapse: false,
|
||||||
@ -46,7 +45,9 @@ Ext.define('PVE.panel.NotesView', {
|
|||||||
},
|
},
|
||||||
success: function(response, opts) {
|
success: function(response, opts) {
|
||||||
var data = response.result.data.description || '';
|
var data = response.result.data.description || '';
|
||||||
me.update(Ext.htmlEncode(data));
|
|
||||||
|
let mdHTML = Proxmox.Markdown.parse(data);
|
||||||
|
me.update(mdHTML);
|
||||||
|
|
||||||
if (me.collapsible && me.collapseMode === 'auto') {
|
if (me.collapsible && me.collapseMode === 'auto') {
|
||||||
me.setCollapsed(data === '');
|
me.setCollapsed(data === '');
|
||||||
|
Loading…
Reference in New Issue
Block a user