0055e9b2c46b39b667a13c2836573dfc8b220360
The names of notification matchers and targets have to be safe IDs, but only the name of webhook targets was checked in the UI, and that without saying what is wrong. For all others, an invalid name, for example one containing a space, was only rejected by the API with a 'parameter verification errors (400)' message, without saying which characters are allowed. Add a 'SafeId' vtype, which uses the existing safe ID regex and says which characters are allowed, and use it for the names of matchers and all target types. Signed-off-by: Michal Fox <me@dualfroz.com>
Description
My contributions to proxmox-git/proxmox-widget-toolkit: 6 commits
132 KiB
0 Stars
1 Watchers
0 Forks
Languages
JavaScript
100%