]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/dc/CorosyncLinkEdit.js
gui/cluster: add CorosyncLinkEdit component to support up to 8 links
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 23 Mar 2020 12:41:13 +0000 (13:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 May 2020 16:44:15 +0000 (18:44 +0200)
commit5957f47f72cac7b63a66bfd01ee6734824ebde49
tree2a9d7556e8b014d56f3924ab71e5d505ad254c07
parentf2aec8f601eb9f095ec938af7da0344a90cb631d
gui/cluster: add CorosyncLinkEdit component to support up to 8 links

CorosyncLinkEdit is a Panel that contains between one and 8
CorosyncLinkSelectors. These can be added or removed with according
buttons.

Values submitted to the API are calculated by each
ProxmoxNetworkSelector itself. This works because ExtJS searches
recursively through all child components for ones with a value to be
submitted, i.e. the CorosyncLinkEdit and CorosyncLinkSelector components
are not part of data submission at all.

Change ClusterEdit.js to use the new component for cluster join and
create. To make space in layout, move 'password' field to the side
(where the network-selector previously was) and use 'hbox' panel for
horizontal layouting to avoid spacing issues with languages where the
fieldLabel doesn't fit on one line.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
www/manager6/Makefile
www/manager6/dc/ClusterEdit.js
www/manager6/dc/CorosyncLinkEdit.js [new file with mode: 0644]