@using MP.AppAuth.Models @inject IJSRuntime JSRuntime
@Environment
Matr. @CurrItem.MatrOpr
@**@
@code { [Parameter] public AnagraficaOperatori CurrItem { get; set; } protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{CurrItem.MatrOpr}"); await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{CurrItem.MatrOpr}", rawCode); } } [Parameter] public string BaseUrl { get; set; } [Parameter] public string Environment { get; set; } protected string rawCode { get { string answ = ""; if (CurrItem != null) { answ = $"{BaseUrl}MatrOpr={CurrItem.MatrOpr}&UserAuthKey={CurrItem.AuthKey}"; } return answ; } } }