Add Alias to output of List web command.

This commit is contained in:
Jared Goodwin 2019-12-28 23:13:43 -08:00
parent f121e509f5
commit fc4a28523b
3 changed files with 7 additions and 5 deletions

View File

@ -110,7 +110,7 @@ var commands = [
var output = `<div>Selected Devices:</div>
<table class="console-device-table table table-responsive">
<thead><tr>
<th>Online</th><th>Device Name</th><th>Current User</th><th>Last Online</th><th>Platform</th><th>OS Description</th><th>Free Storage</th><th>Total Storage (GB)</th><th>Free Memory</th><th>Total Memory (GB)</th><th>Tags</th>
<th>Online</th><th>Device Name</th><th>Alias</th><th>Current User</th><th>Last Online</th><th>Platform</th><th>OS Description</th><th>Free Storage</th><th>Total Storage (GB)</th><th>Free Memory</th><th>Total Memory (GB)</th><th>Tags</th>
</tr></thead>`;
var deviceList = selectedDevices.map(x => {
return `<tr>
@ -118,6 +118,7 @@ var commands = [
.replace("true", "<span class='fa fa-check-circle'></span>")
.replace("false", "<span class='fa fa-times'></span>")}</td>
<td>${x.DeviceName}</td>
<td>${x.Alias}</td>
<td>${x.CurrentUser}</td>
<td>${new Date(x.LastOnline).toLocaleString()}</td>
<td>${x.Platform}</td>
@ -126,7 +127,7 @@ var commands = [
<td>${x.TotalStorage.toLocaleString()}</td>
<td>${Math.round(x.FreeMemory * 100)}%</td>
<td>${x.TotalMemory.toLocaleString()}</td>
<td>${x.Tags}</td>
<td>${x.Tags || ""}</td>
</tr>`;
});
output += deviceList.join("");

File diff suppressed because one or more lines are too long

View File

@ -184,7 +184,7 @@ var commands: Array<ConsoleCommand> = [
var output = `<div>Selected Devices:</div>
<table class="console-device-table table table-responsive">
<thead><tr>
<th>Online</th><th>Device Name</th><th>Current User</th><th>Last Online</th><th>Platform</th><th>OS Description</th><th>Free Storage</th><th>Total Storage (GB)</th><th>Free Memory</th><th>Total Memory (GB)</th><th>Tags</th>
<th>Online</th><th>Device Name</th><th>Alias</th><th>Current User</th><th>Last Online</th><th>Platform</th><th>OS Description</th><th>Free Storage</th><th>Total Storage (GB)</th><th>Free Memory</th><th>Total Memory (GB)</th><th>Tags</th>
</tr></thead>`;
var deviceList = selectedDevices.map(x => {
@ -193,6 +193,7 @@ var commands: Array<ConsoleCommand> = [
.replace("true", "<span class='fa fa-check-circle'></span>")
.replace("false", "<span class='fa fa-times'></span>")}</td>
<td>${x.DeviceName}</td>
<td>${x.Alias}</td>
<td>${x.CurrentUser}</td>
<td>${new Date(x.LastOnline).toLocaleString()}</td>
<td>${x.Platform}</td>
@ -201,7 +202,7 @@ var commands: Array<ConsoleCommand> = [
<td>${x.TotalStorage.toLocaleString()}</td>
<td>${Math.round(x.FreeMemory * 100)}%</td>
<td>${x.TotalMemory.toLocaleString()}</td>
<td>${x.Tags}</td>
<td>${x.Tags || ""}</td>
</tr>`
});
output += deviceList.join("");