Commit cdf2b79a authored by Dietmar Maurer's avatar Dietmar Maurer

FirewallRule: add hack to avoid Form shown as dirty

parent 5934b060
...@@ -122,6 +122,7 @@ Ext.define('PVE.FirewallRulePanel', { ...@@ -122,6 +122,7 @@ Ext.define('PVE.FirewallRulePanel', {
editable: true, editable: true,
queryDelay: 900000000, // disable query queryDelay: 900000000, // disable query
value: '', value: '',
preferredValue: '', // hack: else Form sets dirty flag?
fieldLabel: gettext('Source') fieldLabel: gettext('Source')
}, },
{ {
...@@ -131,6 +132,7 @@ Ext.define('PVE.FirewallRulePanel', { ...@@ -131,6 +132,7 @@ Ext.define('PVE.FirewallRulePanel', {
queryDelay: 900000000, // disable query queryDelay: 900000000, // disable query
editable: true, editable: true,
value: '', value: '',
preferredValue: '', // hack: else Form sets dirty flag?
fieldLabel: gettext('Destination') fieldLabel: gettext('Destination')
} }
]); ]);
...@@ -171,7 +173,6 @@ Ext.define('PVE.FirewallRulePanel', { ...@@ -171,7 +173,6 @@ Ext.define('PVE.FirewallRulePanel', {
queryDelay: 900000000, // disable query queryDelay: 900000000, // disable query
editable: true, editable: true,
value: '', value: '',
emptyText: 'any',
fieldLabel: gettext('Protocol') fieldLabel: gettext('Protocol')
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment