luci-app-ttyd: add debug value list
[project/luci.git] / applications / luci-app-ttyd / htdocs / luci-static / resources / view / ttyd / config.js
index 9934ecebd79b7c9d2193b89b875eaaae3406df38..d4c0a57b75a83517e0eca581e9ac9e73ec2b6dab 100644 (file)
@@ -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'));