]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
node: repos: fix add repo validator
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jul 2021 08:43:10 +0000 (10:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jul 2021 08:43:12 +0000 (10:43 +0200)
commit824f9977499a92cd4c707e9a9644f397ff395944
treeca79b7845b35ccb2f883757b03de91a68e6e578f
parentf0966f29308fb1905f982f88c7a4a224ab182a2d
node: repos: fix add repo validator

isValid is a boolean not a callback, so won't really work and just
set the state once.

Use the `validator` and first call into the parents helper, then do
our logic and return a string  with an explanation in the expected
invalid case.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js