luci-app-openwisp: improved schema for usability 6269/head
authorFederico Capoano <f.capoano@openwisp.io>
Wed, 1 Mar 2023 19:08:01 +0000 (16:08 -0300)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2023 19:08:01 +0000 (16:08 -0300)
commit8727b1cbc8542e06b0b9db7e41366bbbe19d42f5
tree6930e4d511d016c908439ef4888c3d83f8b2503d
parent8d7a81c62433aad26ca0b47666d8334ac726d95e
luci-app-openwisp: improved schema for usability

Without these changes, saving the form of luci-app-openwisp without
doing any change generates a configuration which will not work in most cases.

In this patch I took care of providing the right settings to show the default values,
avoid saving default values and show the interface names properly.
With these changes it will be possible for a user to edit just 1 field without
introducing breaking changes.

Signed-off-by: Federico Capoano <f.capoano@openwisp.io>
applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js