Skip to content

Commit

Permalink
[BUG] Can't edit values of inspectors in ShadowControl mode (#168)
Browse files Browse the repository at this point in the history
* Create draft PR for #167

* now body of inspectors are editable based on presentation type

---------

Co-authored-by: Specter-13 <Specter-13@users.noreply.github.com>
Co-authored-by: Specter-13 <56168909+Specter-13@users.noreply.github.com>
Co-authored-by: Peter Kurhajec <61538034+PTKu@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 16, 2023
1 parent 9fcb064 commit 9b772b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@


<div class="row">
<div class="col-md me-2">
<RenderableContentControl Context="@Data.Result" Presentation="@Presentation" />
<RenderableContentControl Context="@Data.Timestamp" Presentation="@Presentation" />
@* <RenderableContentControl Context="@Data.ErrorCode" Presentation="@Presentation" />
<RenderableContentControl Context="@Data.FailureDescription" Presentation="@Presentation" /> *@
@if (Presentation != "ShadowControl")
{
<div class="col-md me-2">

<RenderableContentControl Context="@Data.Result" Presentation="Display" />
<RenderableContentControl Context="@Data.Timestamp" Presentation="Display" />

</div>
}
<div class="col-md mx-2">

<RenderableContentControl Context="@Data.FailTime" Presentation="@Presentation" />
<RenderableContentControl Context="@Data.PassTime" Presentation="@Presentation" />
</div>
<div class="col-md ms-2">
<RenderableContentControl Context="@Data.NumberOfAllowedRetries" Presentation="@Presentation" />
<RenderableContentControl Context="@Data.RetryAttemptsCount" Presentation="@Presentation" />
@if (Presentation != "ShadowControl")
{
<RenderableContentControl Context="@Data.RetryAttemptsCount" Presentation="Display" />
}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<div id="@ID" class="accordion-collapse collapse">
<div class="accordion-body py-1">
<GenericInspectorDataView Data="@Data" Presentation="Display" />
<GenericInspectorDataView Data="@Data" Presentation="@Presentation" />
</div>
</div>
</div>
Expand Down

0 comments on commit 9b772b3

Please sign in to comment.