Fix critical table selector disabled state
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
class="input-shell"
|
class="input-shell"
|
||||||
value="@selectedTableSlug"
|
value="@selectedTableSlug"
|
||||||
@onchange="HandleTableChanged"
|
@onchange="HandleTableChanged"
|
||||||
disabled="@isReferenceDataLoading || (referenceData?.CriticalTables.Count ?? 0) == 0">
|
disabled="@IsTableSelectionDisabled">
|
||||||
@if (referenceData is null)
|
@if (referenceData is null)
|
||||||
{
|
{
|
||||||
<option value="">Loading tables...</option>
|
<option value="">Loading tables...</option>
|
||||||
@@ -176,6 +176,7 @@
|
|||||||
private bool isReferenceDataLoading = true;
|
private bool isReferenceDataLoading = true;
|
||||||
private string? detailError;
|
private string? detailError;
|
||||||
private Dictionary<(string RollBand, string? GroupKey, string ColumnKey), CriticalTableCellDetail>? cellIndex;
|
private Dictionary<(string RollBand, string? GroupKey, string ColumnKey), CriticalTableCellDetail>? cellIndex;
|
||||||
|
private bool IsTableSelectionDisabled => isReferenceDataLoading || (referenceData?.CriticalTables.Count ?? 0) == 0;
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user