Fix critical table selector disabled state

This commit is contained in:
2026-03-14 12:54:49 +01:00
parent e4be338621
commit 6c7f07d375

View File

@@ -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()
{ {