mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-07 06:31:34 +00:00
code style: text-width, indentation improvements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f340cf64fc
commit
17c580c2a3
@ -23,8 +23,7 @@ Ext.define('Proxmox.panel.InputPanel', {
|
|||||||
// will be set if the inputpanel has advanced items
|
// will be set if the inputpanel has advanced items
|
||||||
hasAdvanced: false,
|
hasAdvanced: false,
|
||||||
|
|
||||||
// if the panel has advanced items,
|
// if the panel has advanced items, this will determine if they are shown by default
|
||||||
// this will determine if they are shown by default
|
|
||||||
showAdvanced: false,
|
showAdvanced: false,
|
||||||
|
|
||||||
// overwrite this to modify submit data
|
// overwrite this to modify submit data
|
||||||
|
@ -322,8 +322,7 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
resetBtn.setDisabled(!dirty);
|
resetBtn.setDisabled(!dirty);
|
||||||
|
|
||||||
if (inputPanel && inputPanel.hasAdvanced) {
|
if (inputPanel && inputPanel.hasAdvanced) {
|
||||||
// we want to show the advanced options
|
// we want to show the advanced options as soon as some of it is not valid
|
||||||
// as soon as some of it is not valid
|
|
||||||
let advancedItems = me.down('#advancedContainer').query('field');
|
let advancedItems = me.down('#advancedContainer').query('field');
|
||||||
let allAdvancedValid = true;
|
let allAdvancedValid = true;
|
||||||
advancedItems.forEach(function(field) {
|
advancedItems.forEach(function(field) {
|
||||||
@ -362,22 +361,20 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
let sp = Ext.state.Manager.getProvider();
|
let sp = Ext.state.Manager.getProvider();
|
||||||
let advchecked = sp.get('proxmox-advanced-cb');
|
let advchecked = sp.get('proxmox-advanced-cb');
|
||||||
inputPanel.setAdvancedVisible(advchecked);
|
inputPanel.setAdvancedVisible(advchecked);
|
||||||
me.buttons.unshift(
|
me.buttons.unshift({
|
||||||
{
|
xtype: 'proxmoxcheckbox',
|
||||||
xtype: 'proxmoxcheckbox',
|
itemId: 'advancedcb',
|
||||||
itemId: 'advancedcb',
|
boxLabelAlign: 'before',
|
||||||
boxLabelAlign: 'before',
|
boxLabel: gettext('Advanced'),
|
||||||
boxLabel: gettext('Advanced'),
|
stateId: 'proxmox-advanced-cb',
|
||||||
stateId: 'proxmox-advanced-cb',
|
value: advchecked,
|
||||||
value: advchecked,
|
listeners: {
|
||||||
listeners: {
|
change: function(cb, val) {
|
||||||
change: function(cb, val) {
|
inputPanel.setAdvancedVisible(val);
|
||||||
inputPanel.setAdvancedVisible(val);
|
sp.set('proxmox-advanced-cb', val);
|
||||||
sp.set('proxmox-advanced-cb', val);
|
},
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let onlineHelp = me.onlineHelp;
|
let onlineHelp = me.onlineHelp;
|
||||||
|
Loading…
Reference in New Issue
Block a user