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

@ -115,7 +115,7 @@
getClientType: function (connection) {
var clientLowered = connection.Client.toLowerCase();
if (clientLowered == "dashboard") {
return "<img src='css/images/clients/html5.png' alt='Dashboard' title='Dashboard' />";
@ -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;