mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rework nav drawer
This commit is contained in:
parent
52f247c51a
commit
ff8014a721
66 changed files with 5861 additions and 6234 deletions
|
@ -1,11 +1,20 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define(['jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function ($) {
|
||||
|
||||
$(document).on('pagebeforeshow', "#logPage", function () {
|
||||
return function (view, params) {
|
||||
|
||||
var page = this;
|
||||
Dashboard.showLoadingMsg();
|
||||
view.querySelector('#chkDebugLog').addEventListener('change', function () {
|
||||
|
||||
require(['paper-fab', 'paper-item-body', 'paper-icon-item'], function () {
|
||||
ApiClient.getServerConfiguration().then(function (config) {
|
||||
|
||||
config.EnableDebugLevelLogging = view.querySelector('#chkDebugLog').checked;
|
||||
|
||||
ApiClient.updateServerConfiguration(config);
|
||||
});
|
||||
});
|
||||
|
||||
view.addEventListener('viewbeforeshow', function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var apiClient = ApiClient;
|
||||
|
||||
|
@ -55,11 +64,15 @@
|
|||
|
||||
html += '</div>';
|
||||
|
||||
$('.serverLogs', page).html(html);
|
||||
$('.serverLogs', view).html(html);
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
|
||||
apiClient.getServerConfiguration().then(function (config) {
|
||||
|
||||
view.querySelector('#chkDebugLog').checked = config.EnableDebugLevelLogging;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue