code style: text-width, indentation improvements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-10-18 07:06:53 +02:00
parent f340cf64fc
commit 17c580c2a3
2 changed files with 16 additions and 20 deletions

View File

@ -23,8 +23,7 @@ Ext.define('Proxmox.panel.InputPanel', {
// will be set if the inputpanel has advanced items
hasAdvanced: false,
// if the panel has advanced items,
// this will determine if they are shown by default
// if the panel has advanced items, this will determine if they are shown by default
showAdvanced: false,
// overwrite this to modify submit data

View File

@ -322,8 +322,7 @@ Ext.define('Proxmox.window.Edit', {
resetBtn.setDisabled(!dirty);
if (inputPanel && inputPanel.hasAdvanced) {
// we want to show the advanced options
// as soon as some of it is not valid
// we want to show the advanced options as soon as some of it is not valid
let advancedItems = me.down('#advancedContainer').query('field');
let allAdvancedValid = true;
advancedItems.forEach(function(field) {
@ -362,22 +361,20 @@ Ext.define('Proxmox.window.Edit', {
let sp = Ext.state.Manager.getProvider();
let advchecked = sp.get('proxmox-advanced-cb');
inputPanel.setAdvancedVisible(advchecked);
me.buttons.unshift(
{
xtype: 'proxmoxcheckbox',
itemId: 'advancedcb',
boxLabelAlign: 'before',
boxLabel: gettext('Advanced'),
stateId: 'proxmox-advanced-cb',
value: advchecked,
listeners: {
change: function(cb, val) {
inputPanel.setAdvancedVisible(val);
sp.set('proxmox-advanced-cb', val);
},
},
},
);
me.buttons.unshift({
xtype: 'proxmoxcheckbox',
itemId: 'advancedcb',
boxLabelAlign: 'before',
boxLabel: gettext('Advanced'),
stateId: 'proxmox-advanced-cb',
value: advchecked,
listeners: {
change: function(cb, val) {
inputPanel.setAdvancedVisible(val);
sp.set('proxmox-advanced-cb', val);
},
},
});
}
let onlineHelp = me.onlineHelp;