summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-olsr/htdocs/luci-static/resources/view/olsr/frontend/olsrddisplay.js
blob: 19d112226045f746e686e5eda4fbd3223888ad0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
'require view';
'require form';
'require ui';
'require uci';

return view.extend({
	load() {
		return Promise.all([uci.load('luci_olsr')]);
	},
	render() {
		let m, s;

		m = new form.Map('luci_olsr', _('OLSR - Display Options'));

		s = m.section(form.TypedSection, 'olsr');
		s.anonymous = true;

		let res = s.option(
			form.Flag,
			'resolve',
			_('Resolve'),
			_('Resolve hostnames on status pages. It is generally safe to allow this, but if you use public IPs and have unstable DNS-Setup then those pages will load really slow. In this case disable it here.')
		);
		res.default = '0';
		res.optional = true;

		return m.render();
	},
});