luci-app-mosquitto: add bind_address property using IPSelect widget

Closes #8046

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2025-10-28 20:59:45 +01:00
parent 5193e7bcaf
commit 0dabba7981

View File

@@ -1,6 +1,7 @@
'use strict'; 'use strict';
'require form'; 'require form';
'require view'; 'require view';
'require widgets';
// OptionalFlag helper function // OptionalFlag helper function
function OptionalFlag(section, key, title, description) { function OptionalFlag(section, key, title, description) {
@@ -94,6 +95,9 @@ return view.extend({
s.anonymous = true; s.anonymous = true;
s.addremove = true; s.addremove = true;
o = s.option(widgets.IPSelect, 'bind_address', _('Bind Addres'));
o.multiple = false;
o = s.option(form.Value, 'port', _('Port')); o = s.option(form.Value, 'port', _('Port'));
o.datatype = 'port'; o.datatype = 'port';