1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

remove option to enable debug logging

This commit is contained in:
dkanada 2019-04-25 00:02:06 -07:00
parent e098fffea8
commit e5885dfd02
2 changed files with 0 additions and 24 deletions

View file

@ -1,13 +1,6 @@
define(["datetime", "loading", "apphost", "listViewStyle", "emby-button", "flexStyles"], function(datetime, loading, appHost) { define(["datetime", "loading", "apphost", "listViewStyle", "emby-button", "flexStyles"], function(datetime, loading, appHost) {
"use strict"; "use strict";
return function(view, params) { 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() { view.addEventListener("viewbeforeshow", function() {
loading.show(); loading.show();
var apiClient = ApiClient; var apiClient = ApiClient;
@ -35,10 +28,6 @@ define(["datetime", "loading", "apphost", "listViewStyle", "emby-button", "flexS
view.querySelector(".serverLogs").innerHTML = html; view.querySelector(".serverLogs").innerHTML = html;
loading.hide(); loading.hide();
}); });
apiClient.getServerConfiguration().then(function(config) {
view.querySelector("#chkDebugLog").checked = config.EnableDebugLevelLogging;
});
}); });
} }
}); });

View file

@ -1,20 +1,7 @@
<div id="logPage" data-role="page" class="page type-interior"> <div id="logPage" data-role="page" class="page type-interior">
<div> <div>
<div class="content-primary"> <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 class="serverLogs readOnlyContent">
</div> </div>
</div> </div>
</div> </div>