mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove self update capability from service
This commit is contained in:
parent
d8fdb2f5f8
commit
e3b0163c4a
2 changed files with 15 additions and 2 deletions
|
@ -362,7 +362,7 @@
|
|||
|
||||
$('#updateFail', page).hide();
|
||||
|
||||
if (dashboardInfo.SystemInfo.IsNetworkDeployed && !dashboardInfo.SystemInfo.HasPendingRestart) {
|
||||
if (!dashboardInfo.SystemInfo.HasPendingRestart) {
|
||||
|
||||
// Only check once every 10 mins
|
||||
if (DashboardPage.lastAppUpdateCheck && (new Date().getTime() - DashboardPage.lastAppUpdateCheck) < 600000) {
|
||||
|
@ -382,6 +382,14 @@
|
|||
$('#pUpToDate', page).hide();
|
||||
|
||||
$('#pUpdateNow', page).show();
|
||||
|
||||
if (dashboardInfo.SystemInfo.CanSelfUpdate) {
|
||||
$('#btnUpdateApplicationContainer', page).show();
|
||||
$('#btnManualUpdateContainer', page).hide();
|
||||
} else {
|
||||
$('#btnUpdateApplicationContainer', page).hide();
|
||||
$('#btnManualUpdateContainer', page).show();
|
||||
}
|
||||
|
||||
$('#newVersionNumber', page).html("Version " + version.versionStr + " is now available for download.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue