luci-base: FlagValue fix type of enabled and disabled properties
authorSergey Ponomarev <stokito@gmail.com>
Fri, 19 Jan 2024 17:47:58 +0000 (19:47 +0200)
committerSergey Ponomarev <stokito@gmail.com>
Tue, 23 Jan 2024 07:29:12 +0000 (09:29 +0200)
commita4fd238ab2e5312fe549f76dbe4a63912b43a3fb
tree5da2d50ec5fbb24dc4f6e2fd75d0d6c9945cdd7f
parentb18960f60057c1915ff48f70431cf076e6cba66b
luci-base: FlagValue fix type of enabled and disabled properties

The form.Flag checkbox allows to specify a value for enabled/disabled e.g. for a dropbear:

    o = s.option(form.Flag, 'PasswordAuth');
    o.enabled  = 'on';

So the property type should be a string but not just a number.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
modules/luci-base/htdocs/luci-static/resources/form.js