]> git.proxmox.com Git - pmg-gui.git/commit
rules/objects: add mode selector dropdown
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 22 Feb 2024 09:14:19 +0000 (10:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2024 13:54:44 +0000 (14:54 +0100)
commite3c8d4fd638b8653a797c3a6659d0ad94c3b2a0e
treeba2464c96704a077ceaea9d1499d63e5a74cbb0c
parent60875e2d749c6cd3aa91202d13197d77a419d630
rules/objects: add mode selector dropdown

for objects and object types in rules. We add a simple dropdown for
the 'and' and 'invert' flags, to be somewhat consistent with the
notification matchers from pve and to make the wording more clear than
simple and/invert.

For What matches add a special warning hint, since that behaves a bit
special because of the mail parts.

When the mode changes for an object group, we reload the list of
objects since that holds the info about the attributes, so to avoid
having to keep track in the gui which field changed on the group, we
simply reload the list with the current information.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
js/Makefile
js/ObjectGroup.js
js/ObjectGroupConfiguration.js
js/RuleInfo.js
js/form/MatchModeSelector.js [new file with mode: 0644]