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