mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added automatic restart option
This commit is contained in:
parent
fa461c249c
commit
eb07d62734
4 changed files with 24 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="#" data-role="button" class="ui-btn-active">General</a>
|
<a href="#" data-role="button" class="ui-btn-active">General</a>
|
||||||
<a href="advancedserversettings.html" data-role="button">Server</a>
|
<a href="advancedserversettings.html" data-role="button">Http Server</a>
|
||||||
<a href="encodingsettings.html" data-role="button">Transcoding</a>
|
<a href="encodingsettings.html" data-role="button">Transcoding</a>
|
||||||
</div>
|
</div>
|
||||||
<form id="advancedConfigurationForm">
|
<form id="advancedConfigurationForm">
|
||||||
|
@ -24,6 +24,13 @@
|
||||||
This will start the tray icon on windows startup. To start the windows service, uncheck this and run the service from the windows control panel. Please note that you cannot run both at the same time, so you will need to exit the tray icon before starting the service.
|
This will start the tray icon on windows startup. To start the windows service, uncheck this and run the service from the windows control panel. Please note that you cannot run both at the same time, so you will need to exit the tray icon before starting the service.
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<input type="checkbox" id="chkDebugLog" name="chkDebugLog" data-mini="true" />
|
||||||
|
<label for="chkDebugLog">Enable debug logging </label>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>Updates</h2>
|
||||||
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<label for="selectAutomaticUpdateLevel">Automatic update level</label>
|
<label for="selectAutomaticUpdateLevel">Automatic update level</label>
|
||||||
<select name="selectAutomaticUpdateLevel" id="selectAutomaticUpdateLevel" data-mini="true">
|
<select name="selectAutomaticUpdateLevel" id="selectAutomaticUpdateLevel" data-mini="true">
|
||||||
|
@ -35,9 +42,12 @@
|
||||||
Dev builds are the bleeding edge. Released often, these build have not been tested. The application may crash and entire features may not work at all.
|
Dev builds are the bleeding edge. Released often, these build have not been tested. The application may crash and entire features may not work at all.
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li id="fldEnableAutomaticRestart" style="display: none;">
|
||||||
<input type="checkbox" id="chkDebugLog" name="chkDebugLog" data-mini="true" />
|
<input type="checkbox" id="chkEnableAutomaticRestart" name="chkEnableAutomaticRestart" data-mini="true" />
|
||||||
<label for="chkDebugLog">Enable debug logging </label>
|
<label for="chkEnableAutomaticRestart">Allow the server to restart automatically to apply updates</label>
|
||||||
|
<div class="fieldDescription">
|
||||||
|
The server will only restart during idle periods, when no users are active.
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Cache Path</h2>
|
<h2>Cache Path</h2>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="advanced.html" data-role="button">General</a>
|
<a href="advanced.html" data-role="button">General</a>
|
||||||
<a href="#" data-role="button" class="ui-btn-active">Server</a>
|
<a href="#" data-role="button" class="ui-btn-active">Http Server</a>
|
||||||
<a href="encodingsettings.html" data-role="button">Transcoding</a>
|
<a href="encodingsettings.html" data-role="button">Transcoding</a>
|
||||||
</div>
|
</div>
|
||||||
<form class="advancedServerSettingsForm">
|
<form class="advancedServerSettingsForm">
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="advanced.html" data-role="button">General</a>
|
<a href="advanced.html" data-role="button">General</a>
|
||||||
<a href="advancedserversettings.html" data-role="button">Server</a>
|
<a href="advancedserversettings.html" data-role="button">Http Server</a>
|
||||||
<a href="#" data-role="button" class="ui-btn-active">Transcoding</a>
|
<a href="#" data-role="button" class="ui-btn-active">Transcoding</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,13 @@
|
||||||
} else {
|
} else {
|
||||||
$('#fldRunAtStartup', page).hide();
|
$('#fldRunAtStartup', page).hide();
|
||||||
}
|
}
|
||||||
|
$('#chkEnableAutomaticRestart', page).checked(config.EnableAutomaticRestart).checkboxradio("refresh");
|
||||||
|
|
||||||
|
if (systemInfo.CanSelfRestart) {
|
||||||
|
$('#fldEnableAutomaticRestart', page).show();
|
||||||
|
} else {
|
||||||
|
$('#fldEnableAutomaticRestart', page).hide();
|
||||||
|
}
|
||||||
|
|
||||||
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).selectmenu('refresh').trigger('change');
|
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).selectmenu('refresh').trigger('change');
|
||||||
$('#chkDebugLog', page).checked(config.EnableDebugLevelLogging).checkboxradio("refresh");
|
$('#chkDebugLog', page).checked(config.EnableDebugLevelLogging).checkboxradio("refresh");
|
||||||
|
@ -130,6 +137,7 @@
|
||||||
|
|
||||||
config.RunAtStartup = $('#chkRunAtStartup', form).checked();
|
config.RunAtStartup = $('#chkRunAtStartup', form).checked();
|
||||||
config.SystemUpdateLevel = $('#selectAutomaticUpdateLevel', form).val();
|
config.SystemUpdateLevel = $('#selectAutomaticUpdateLevel', form).val();
|
||||||
|
config.EnableAutomaticRestart = $('#chkEnableAutomaticRestart', form).checked();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue