remove option to enable debug logging
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
define(["datetime", "loading", "apphost", "listViewStyle", "emby-button", "flexStyles"], function(datetime, loading, appHost) {
|
||||
"use strict";
|
||||
return function(view, params) {
|
||||
view.querySelector("#chkDebugLog").addEventListener("change", function() {
|
||||
ApiClient.getServerConfiguration().then(function(config) {
|
||||
config.EnableDebugLevelLogging = view.querySelector("#chkDebugLog").checked;
|
||||
ApiClient.updateServerConfiguration(config);
|
||||
})
|
||||
});
|
||||
|
||||
view.addEventListener("viewbeforeshow", function() {
|
||||
loading.show();
|
||||
var apiClient = ApiClient;
|
||||
@@ -35,10 +28,6 @@ define(["datetime", "loading", "apphost", "listViewStyle", "emby-button", "flexS
|
||||
view.querySelector(".serverLogs").innerHTML = html;
|
||||
loading.hide();
|
||||
});
|
||||
|
||||
apiClient.getServerConfiguration().then(function(config) {
|
||||
view.querySelector("#chkDebugLog").checked = config.EnableDebugLevelLogging;
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
13
src/log.html
13
src/log.html
@@ -1,20 +1,7 @@
|
||||
<div id="logPage" data-role="page" class="page type-interior">
|
||||
|
||||
<div>
|
||||
<div class="content-primary">
|
||||
<div class="readOnlyContent">
|
||||
<div class="flex padded-top">
|
||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||
<label style="width:auto;">
|
||||
<input type="checkbox" is="emby-checkbox" id="chkDebugLog" />
|
||||
<span>${LabelEnableDebugLogging}</span>
|
||||
</label>
|
||||
<div class="fieldDescription checkboxFieldDescription">${EnableDebugLoggingHelp}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="serverLogs readOnlyContent">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user