olsrddisplay.js 687 B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. 'require view';
  3. 'require form';
  4. 'require ui';
  5. 'require uci';
  6. return view.extend({
  7. load: function () {
  8. return Promise.all([uci.load('luci_olsr')]);
  9. },
  10. render: function () {
  11. let m, s, o;
  12. m = new form.Map('luci_olsr', _('OLSR - Display Options'));
  13. s = m.section(form.TypedSection, 'olsr');
  14. s.anonymous = true;
  15. var res = s.option(
  16. form.Flag,
  17. 'resolve',
  18. _('Resolve'),
  19. _('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.')
  20. );
  21. res.default = '0';
  22. res.optional = true;
  23. return m.render();
  24. },
  25. });