proxmox-backup/www/NodeNotes.js
Stefan Sterz f3b02a9b86 fix #3067: ui: add a separate notes view for longer markdown notes
since markdown notes might be rather long, this commit adds a tab
similar to pve's datacenter or node notes. requires a bump of the
widget toolkit in order to use the `pmxNotesView`.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2022-04-25 08:39:39 +02:00

24 lines
420 B
JavaScript

// Needs to be its own xtype for `path` to work in `NavigationTree`
Ext.define('PBS.NodeNotes', {
extend: 'Ext.panel.Panel',
xtype: 'pbsNodeNotes',
scrollable: true,
layout: 'fit',
items: [
{
xtype: 'container',
layout: 'fit',
items: [{
xtype: 'pmxNotesView',
tools: false,
border: false,
node: 'localhost',
enableTBar: true,
maxLength: 1022*64,
}],
},
],
});