Skip to content

Commit

Permalink
Issue #103 gateway module log modal is out of the screen for large lo…
Browse files Browse the repository at this point in the history
…gs (#116)

* fix #88 (#92)

Co-authored-by: ben salim <[email protected]>

* fix #76 check the DevEui at device creation

* adding scroll in the logs modal

* fix #103

* fix #76 check the DevEui at device creation

* adding scroll in the logs modal

* fix #103

* add of missing code

* add of missing code

* code cleanup

Co-authored-by: Kevin BEAUGRAND <[email protected]>
  • Loading branch information
Sben65 and kbeaugrand authored Jan 27, 2022
1 parent d8ca25a commit 50811c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AzureIoTHub.Portal/Client/Pages/Gateways/Detail.razor
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ else
Snackbar.Add($"Error<br>Status : {c2dResult.Status};<br>Payload : {c2dResult.Payload};", Severity.Error,
(option) =>
{
option.VisibleStateDuration = 100000;
option.VisibleStateDuration = 10000;
});
}
}
Expand Down
11 changes: 7 additions & 4 deletions src/AzureIoTHub.Portal/Client/Pages/Gateways/Logs.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
@using Newtonsoft.Json;


<MudDialog>
<MudDialog Style="max-width:fit-content;">
<DialogContent>
<MudCard Outlined="true" >
<MudCard Outlined="true" Style="width:800px;max-height: 600px; overflow-y: scroll">
<MudCardContent>

<MudItem xs="12">
<MudTable Items="@payloads" Dense=true Breakpoint="Breakpoint.Sm" Hover=true Bordered=true Striped=true>
<ColGroup>
<col style="width: 20%;" />
<col style="width: 10%;" />
<col style="width: 30%;" />
<col style="width: 40%;" />
</ColGroup>

<HeaderContent>
Expand All @@ -26,7 +26,10 @@
@context.TimeStamp
</MudTd>
<MudTd DataLabel="Type" Style="text-align: center">@context.LogLevel</MudTd>
<MudTd DataLabel="NbDevices" Style="text-align: center;word-break: break-all;">@context.Text</MudTd>
<MudTd DataLabel="NbDevices" Style="text-align: center;">
<MudTextField T="string" Text="@context.Text" Lines="3" Disabled="true"></MudTextField>
</MudTd>
@*<MudTd DataLabel="NbDevices" Style="text-align: center;word-break: break-all;">@context.Text</MudTd>*@
</RowTemplate>
<PagerContent>
<MudTablePager PageSizeOptions="@pageSizeOptions"></MudTablePager>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public async Task<IEnumerable<DeviceListItem>> Get()
{
// Gets all the twins from this devices
var items = await this.devicesService.GetAllDevice();
var results = new List<DeviceListItem>();

return items.Select(this.deviceTwinMapper.CreateDeviceListItem);
}
Expand Down

0 comments on commit 50811c5

Please sign in to comment.