2024-05-16 23:32:46 +01:00
|
|
|
<MudDialog Class="dialog-user-qr-code">
|
2023-10-01 08:09:04 -04:00
|
|
|
<DialogContent>
|
2024-03-08 18:42:56 -05:00
|
|
|
<MudExtensions.MudBarcode Value="@qrCode" BarcodeFormat="ZXing.BarcodeFormat.QR_CODE" Height="300" Width="300" />
|
2023-10-01 08:09:04 -04:00
|
|
|
</DialogContent>
|
|
|
|
<DialogActions>
|
2024-05-01 16:13:47 +01:00
|
|
|
<MudButton Color="Color.Primary" OnClick="Submit">@Localizer["Dialog OK"]</MudButton>
|
2023-10-01 08:09:04 -04:00
|
|
|
</DialogActions>
|
|
|
|
</MudDialog>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
|
|
|
[CascadingParameter]
|
|
|
|
MudDialogInstance MudDialog { get; set; } = null!;
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
public User User { get; set; } = new();
|
|
|
|
|
|
|
|
private string qrCode = string.Empty;
|
|
|
|
|
|
|
|
protected override void OnInitialized()
|
|
|
|
{
|
|
|
|
base.OnInitialized();
|
2023-11-11 23:12:26 +00:00
|
|
|
qrCode = "BNTTCNID" + User.AccessCodes.First();
|
2023-10-01 08:09:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
private void Submit()
|
|
|
|
{
|
|
|
|
MudDialog.Close(DialogResult.Ok(true));
|
|
|
|
}
|
|
|
|
}
|