fix(dashboard): pilot native dialog focus and safe dismissal
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
@namespace MxUiCanary.Components
|
||||
@page "/"
|
||||
@inject IJSRuntime JS
|
||||
<ThemeShell Product="Synthetic MX UI canary">
|
||||
<ChildContent>
|
||||
<p>Synthetic local fixture: no gateway worker, key store, LDAP, COM or real write provider.</p>
|
||||
<button id="slow-trigger" class="btn btn-secondary" @onclick="()=>_open=true">Open synthetic delayed confirmation</button>
|
||||
<button id="outside" class="btn btn-secondary">Outside inertness probe</button>
|
||||
<p id="counts">Synthetic confirms: @_count</p>
|
||||
<ConfirmDialog IsOpen="@_open" IsBusy="@_busy" Title="Synthetic delayed operation" Message="Fixture only; no session or key is changed." OnCancel="()=>_open=false" OnConfirm="Confirm"/>
|
||||
<ApiKeysPage/>
|
||||
</ChildContent>
|
||||
</ThemeShell>
|
||||
@code {
|
||||
bool _open;bool _busy;int _count;
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender) {if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");}
|
||||
async Task Confirm(){if(_busy)return;_busy=true;_count++;await Task.Delay(1500);_busy=false;_open=false;}
|
||||
}
|
||||
Reference in New Issue
Block a user