mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +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';
|
'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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user