summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-08-04 14:19:45 +0200
committerGitHub <noreply@github.com>2020-08-04 14:19:45 +0200
commit9bc58653396c55f0c412278af8358b0d0a125b4c (patch)
tree08d74201321fa59db92dea9dfc57809f04fbedd4 /applications
parent9acc7d8a2c1d80efb9818817727aa809aa9db73d (diff)
parent3781b20bd22cf3cca26b62a536bb0de20a84a751 (diff)
Merge pull request #4329 from TDT-AG/pr/20200803-luci-app-ttyd
luci-app-ttyd: add debug value list
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js
index 9934ecebd7..d4c0a57b75 100644
--- a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js
+++ b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js
@@ -70,8 +70,12 @@ return view.extend({
o = s.option(form.Value, 'ssl_ca', _('SSL ca'), _('SSL CA file path for client certificate verification'));
o.depends('ssl', '1');
- o = s.option(form.Value, 'debug', _('Debug'), _('Set log level (default: 7)'));
- o.placeholder = '7';
+ o = s.option(form.ListValue, 'debug', _('Debug'), _('Set log level (default: 7)'));
+ o.value('1', _('Error'));
+ o.value('3', _('Warning'));
+ o.value('7', _('Notice'));
+ o.value('15', _('Info'));
+ o.default = '7';
s.option(form.Value, 'command', _('Command'));