mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
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:
@@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
'require form';
|
||||
'require view';
|
||||
'require widgets';
|
||||
|
||||
// OptionalFlag helper function
|
||||
function OptionalFlag(section, key, title, description) {
|
||||
@@ -94,6 +95,9 @@ return view.extend({
|
||||
s.anonymous = true;
|
||||
s.addremove = true;
|
||||
|
||||
o = s.option(widgets.IPSelect, 'bind_address', _('Bind Addres'));
|
||||
o.multiple = false;
|
||||
|
||||
o = s.option(form.Value, 'port', _('Port'));
|
||||
o.datatype = 'port';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user