mirror of
				https://git.openwrt.org/project/luci.git
				synced 2025-10-31 10:49:03 +08: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
	 Paul Donald
					Paul Donald