luci-app-strongswan-swanctl: prevent section name collisions
authorPaul Donald <[email protected]>
Sat, 19 Jul 2025 17:15:11 +0000 (19:15 +0200)
committerPaul Donald <[email protected]>
Sat, 19 Jul 2025 17:15:11 +0000 (19:15 +0200)
commiteb66bdccf815797f6d1fa0cc0aed571319a2b980
tree148de793363e654f283e00be988a4dd3fe086701
parent1352d75f1aeb6f9a6745596361261667499f30ac
luci-app-strongswan-swanctl: prevent section name collisions

Named sections collide and overwrite each other when navigating the
GUI and repeating the same name, because uci does not allow multiple
named sections to share the same name. This at least forces users to
pick names so their resulting config works.

Closes #7159

Signed-off-by: Paul Donald <[email protected]>
applications/luci-app-strongswan-swanctl/htdocs/luci-static/resources/view/strongswan-swanctl/swanctl.js