]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/grid/FirewallRules.js
ui: firwall: change icmp type selector to a combogrid
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 29 May 2020 12:22:06 +0000 (14:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Mar 2022 14:20:22 +0000 (15:20 +0100)
commitd09a68e4468fa7c95642e7c24a5e425266872af1
treec9aa42c1674122f00f931436a4e14adcb27df1a9
parent29592cbbbeb12155bd1ed2dcfa26064d29c8ce92
ui: firwall: change icmp type selector to a combogrid

The combogrid contains all valid icmp types that iptables accepts. In
addition to the names, the Type[/Code] value is shown as well. But
specifying Type[/Code] is not supported.

As the simple solution with setStore() does not work to change the
store for the combogrid, we simply have 2 different
ICMPTypeSelectors, one for IPv4, the other for IPv6, which are
switched depending on the specified protocol.

As disabled fields don't submit their value, we can keep the values
for the dport and both icmp-type fields when switching protocols.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/grid/FirewallRules.js