mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Revert "Support restarting the server on all platforms"
This reverts commit eb6a76f578
.
This commit is contained in:
parent
ebb4b05081
commit
adf530f317
3 changed files with 12 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
<button is="emby-button" type="button" class="raised btnRefresh">
|
<button is="emby-button" type="button" class="raised btnRefresh">
|
||||||
<span>${ButtonScanAllLibraries}</span>
|
<span>${ButtonScanAllLibraries}</span>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" type="button" id="btnRestartServer" class="raised" onclick="DashboardPage.restart(this);" style="margin-left:0;">
|
<button is="emby-button" type="button" id="btnRestartServer" class="raised hide" onclick="DashboardPage.restart(this);" style="margin-left:0;">
|
||||||
<span>${Restart}</span>
|
<span>${Restart}</span>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" type="button" id="btnShutdown" class="raised" onclick="DashboardPage.shutdown(this);">
|
<button is="emby-button" type="button" id="btnShutdown" class="raised" onclick="DashboardPage.shutdown(this);">
|
||||||
|
|
|
@ -200,6 +200,12 @@ import confirm from '../../components/confirm/confirm';
|
||||||
view.querySelector('#operatingSystem').innerHTML = globalize.translate('DashboardOperatingSystem', systemInfo.OperatingSystem);
|
view.querySelector('#operatingSystem').innerHTML = globalize.translate('DashboardOperatingSystem', systemInfo.OperatingSystem);
|
||||||
view.querySelector('#architecture').innerHTML = globalize.translate('DashboardArchitecture', systemInfo.SystemArchitecture);
|
view.querySelector('#architecture').innerHTML = globalize.translate('DashboardArchitecture', systemInfo.SystemArchitecture);
|
||||||
|
|
||||||
|
if (systemInfo.CanSelfRestart) {
|
||||||
|
view.querySelector('#btnRestartServer').classList.remove('hide');
|
||||||
|
} else {
|
||||||
|
view.querySelector('#btnRestartServer').classList.add('hide');
|
||||||
|
}
|
||||||
|
|
||||||
view.querySelector('#cachePath').innerHTML = systemInfo.CachePath;
|
view.querySelector('#cachePath').innerHTML = systemInfo.CachePath;
|
||||||
view.querySelector('#logPath').innerHTML = systemInfo.LogPath;
|
view.querySelector('#logPath').innerHTML = systemInfo.LogPath;
|
||||||
view.querySelector('#transcodePath').innerHTML = systemInfo.TranscodingTempPath;
|
view.querySelector('#transcodePath').innerHTML = systemInfo.TranscodingTempPath;
|
||||||
|
|
|
@ -20,6 +20,11 @@ import alert from '../../components/alert';
|
||||||
return '<option value="' + language.Value + '">' + language.Name + '</option>';
|
return '<option value="' + language.Value + '">' + language.Name + '</option>';
|
||||||
})).val(config.UICulture);
|
})).val(config.UICulture);
|
||||||
currentLanguage = config.UICulture;
|
currentLanguage = config.UICulture;
|
||||||
|
if (systemInfo.CanSelfRestart || systemInfo.CanSelfUpdate) {
|
||||||
|
$('.autoUpdatesContainer', page).removeClass('hide');
|
||||||
|
} else {
|
||||||
|
$('.autoUpdatesContainer', page).addClass('hide');
|
||||||
|
}
|
||||||
|
|
||||||
loading.hide();
|
loading.hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue