Fix input interactivity
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
<RadzenStack JustifyContent="JustifyContent.SpaceBetween" Gap="1rem">
|
||||
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Normal">
|
||||
<RadzenText TextStyle="TextStyle.H6">Сервис nsi</RadzenText>
|
||||
<RadzenButton Click=@(() => OnNsiExportItem1Click()) Disabled=@interactable Text="Экспорт НСИ 1" ButtonStyle="ButtonStyle.Primary" />
|
||||
<RadzenButton Click=@(() => OnNsiExportItem1Click()) Disabled=@inputDisabled Text="Экспорт НСИ 1" ButtonStyle="ButtonStyle.Primary" />
|
||||
</RadzenStack>
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
@code {
|
||||
EventConsole console = default!;
|
||||
bool interactable = true;
|
||||
bool inputDisabled = false;
|
||||
string messageBody;
|
||||
string responseBody;
|
||||
|
||||
@ -107,7 +107,7 @@
|
||||
|
||||
void StartExport()
|
||||
{
|
||||
interactable = false;
|
||||
inputDisabled = false;
|
||||
messageBody = string.Empty;
|
||||
responseBody = string.Empty;
|
||||
catchMessageBody = true;
|
||||
@ -117,7 +117,7 @@
|
||||
|
||||
void EndExport()
|
||||
{
|
||||
interactable = true;
|
||||
inputDisabled = true;
|
||||
responseBody = File.ReadAllText(messageCapturer.LastFileName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user