show port numbers on dashboard
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user