Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: don't show trace options when compiled without traces in Debug…
…ging panel
  • Loading branch information
perexg committed May 27, 2015
1 parent f86fe95 commit 72a0ebe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/webui/static/app/tvhlog.js
Expand Up @@ -61,14 +61,22 @@ tvheadend.tvhlog = function(panel, index) {
}
});

items = new Array();
items.push(tvhlogLogPath);
items.push(tvhlogToSyslog);
if (tvheadend.accessUpdate.trace)
items.push(tvhlogTraceOn);
items.push(tvhlogDebugSubsys);
if (tvheadend.accessUpdate.trace)
items.push(tvhlogTraceSubsys);

var DebuggingPanel = new Ext.form.FieldSet({
title: 'Debugging Options',
width: 700,
autoHeight: true,
collapsible: true,
animCollapse : true,
items: [tvhlogLogPath, tvhlogToSyslog,
tvhlogTraceOn, tvhlogDebugSubsys, tvhlogTraceSubsys]
items: items
});

var confpanel = new Ext.form.FormPanel({
Expand Down

0 comments on commit 72a0ebe

Please sign in to comment.