Skip to content

Commit

Permalink
Add mac addresses to displayed device info.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Jun 22, 2023
1 parent 0630b2e commit c4a97ee
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Server/Components/Devices/DeviceCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@
<input class="form-control" readonly value="@Device.PublicIP" />
</div>

<div class="font-weight-bold text-info mt-2">
MAC Addresses
</div>
<div>
<input class="form-control" readonly value="@(string.Join(", ", Device.MacAddresses))" />
</div>

<EditForm Model="Device" OnValidSubmit="HandleValidSubmit">
<DataAnnotationsValidator />

Expand Down
20 changes: 18 additions & 2 deletions Server/Pages/DeviceDetails.razor
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,22 @@ else
<input type="text" class="form-control" name="agent-memory-total" readonly value="@(Device.TotalMemory)" />
</div>
</div>
<div class="form-group row">
<label for="agent-memory-total" class="col-sm-2 col-form-label">
Public IP:
</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="agent-memory-total" readonly value="@(Device.PublicIP)" />
</div>
</div>
<div class="form-group row">
<label for="agent-memory-total" class="col-sm-2 col-form-label">
MAC Addresses:
</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="agent-memory-total" readonly value="@(string.Join(", ", Device.MacAddresses))" />
</div>
</div>
<div class="form-group row">
<label for="device-alias" class="col-sm-2 col-form-label">Device Alias:</label>
<div class="col-sm-10">
Expand All @@ -148,9 +164,9 @@ else
<option value="">None</option>

@foreach (var group in DataService.GetDeviceGroups(Username))
{
{
<option @key="group.ID" value="@group.ID">@group.Name</option>
}
}
</InputSelect>
<ValidationMessage For="() => Device.DeviceGroupID" />
</div>
Expand Down

0 comments on commit c4a97ee

Please sign in to comment.