test(ui): retain OtOpcUa component canaries and owned SQL proof
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
@page "/tree-recovery-pilot"
|
||||
@layout ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout.MainLayout
|
||||
@inject FixtureTreeState State
|
||||
<p class="notice">Synthetic local tree reads only. No configuration services or lazy child requests are dispatched.</p>
|
||||
<button id="fixture-recover-tree" type="button" @onclick="()=>State.Fail=false">Restore local root reads</button>
|
||||
<button id="fixture-observe-tree" type="button" @onclick="Observe">Observe local read counts</button>
|
||||
<output id="fixture-tree-count">@_reads / @_unexpected</output>
|
||||
@if(_ready)
|
||||
{
|
||||
@if(Sample=="raw"){<ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Raw.GlobalRaw />}
|
||||
else {<ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Uns.GlobalUns />}
|
||||
}
|
||||
@code {
|
||||
[SupplyParameterFromQuery]public string? Sample{get;set;}
|
||||
private bool _ready;private int _reads,_unexpected;
|
||||
protected override void OnInitialized(){State.Fail=true;State.Populated=Sample!="raw";State.Reads=0;State.Unexpected=0;_ready=true;}
|
||||
private void Observe(){_reads=State.Reads;_unexpected=State.Unexpected;}
|
||||
}
|
||||
Reference in New Issue
Block a user