mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
show port numbers on dashboard
This commit is contained in:
parent
c73b7385b4
commit
56a28632c7
2 changed files with 10 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
<p>
|
<p>
|
||||||
Version <span id="appVersionNumber"></span>
|
Version <span id="appVersionNumber"></span>
|
||||||
</p>
|
</p>
|
||||||
|
<p id="ports"></p>
|
||||||
<p id="pUpToDate" style="display: none;">
|
<p id="pUpToDate" style="display: none;">
|
||||||
<img src="css/images/checkmarkgreen.png" style="height: 20px; margin-right: 3px; position: relative; top: 4px;" />
|
<img src="css/images/checkmarkgreen.png" style="height: 20px; margin-right: 3px; position: relative; top: 4px;" />
|
||||||
Media Browser Server is up to date
|
Media Browser Server is up to date
|
||||||
|
|
|
@ -277,6 +277,14 @@
|
||||||
|
|
||||||
$('#appVersionNumber', page).html(dashboardInfo.SystemInfo.Version);
|
$('#appVersionNumber', page).html(dashboardInfo.SystemInfo.Version);
|
||||||
|
|
||||||
|
var port = ApiClient.serverPortNumber();
|
||||||
|
|
||||||
|
if (port == dashboardInfo.SystemInfo.WebSocketPortNumber) {
|
||||||
|
$('#ports', page).html('Running on port <b>' + port + '</b>');
|
||||||
|
} else {
|
||||||
|
$('#ports', page).html('Running on ports <b>' + port + '</b> and <b>' + dashboardInfo.SystemInfo.WebSocketPortNumber + '</b>');
|
||||||
|
}
|
||||||
|
|
||||||
if (dashboardInfo.RunningTasks.filter(function (task) {
|
if (dashboardInfo.RunningTasks.filter(function (task) {
|
||||||
|
|
||||||
return task.Id == dashboardInfo.ApplicationUpdateTaskId;
|
return task.Id == dashboardInfo.ApplicationUpdateTaskId;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue