1
0
Fork 0
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:
Luke Pulverenti 2013-05-18 14:58:03 -04:00
parent c73b7385b4
commit 56a28632c7
2 changed files with 10 additions and 1 deletions

View file

@ -15,6 +15,7 @@
<p>
Version <span id="appVersionNumber"></span>
</p>
<p id="ports"></p>
<p id="pUpToDate" style="display: none;">
<img src="css/images/checkmarkgreen.png" style="height: 20px; margin-right: 3px; position: relative; top: 4px;" />
Media Browser Server is up to date

View file

@ -277,6 +277,14 @@
$('#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) {
return task.Id == dashboardInfo.ApplicationUpdateTaskId;