ui: window notes: refactor and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-28 09:52:30 +01:00
parent e88d14d69c
commit a88c03c820

View File

@ -1,27 +1,22 @@
Ext.define('PVE.window.NotesEdit', {
extend: 'Proxmox.window.Edit',
initComponent : function() {
var me = this;
title: gettext('Notes'),
Ext.apply(me, {
title: gettext('Notes'),
width: 600,
height: '400px',
resizable: true,
layout: 'fit',
defaultButton: undefined,
items: {
xtype: 'textarea',
name: 'description',
height: '100%',
value: '',
hideLabel: true
}
});
width: 600,
height: '400px',
resizable: true,
layout: 'fit',
me.callParent();
autoLoad: true,
me.load();
}
defaultButton: undefined,
items: {
xtype: 'textarea',
name: 'description',
height: '100%',
value: '',
hideLabel: true,
},
});