fix(centralui): NodeBrowserDialog — reset load/expand spinner on error + clear stale failure on blank search (T15)
This commit is contained in:
@@ -211,8 +211,15 @@
|
||||
{
|
||||
node.Loading = true;
|
||||
StateHasChanged();
|
||||
var result = await BrowseService.BrowseChildrenAsync(_runtimeSiteId, _runtimeConnectionName, node.NodeId);
|
||||
node.Loading = false;
|
||||
BrowseNodeResult result;
|
||||
try
|
||||
{
|
||||
result = await BrowseService.BrowseChildrenAsync(_runtimeSiteId, _runtimeConnectionName, node.NodeId);
|
||||
}
|
||||
finally
|
||||
{
|
||||
node.Loading = false;
|
||||
}
|
||||
|
||||
if (result.Failure is not null)
|
||||
{
|
||||
@@ -237,9 +244,16 @@
|
||||
|
||||
node.Loading = true;
|
||||
StateHasChanged();
|
||||
var result = await BrowseService.BrowseChildrenAsync(
|
||||
_runtimeSiteId, _runtimeConnectionName, node.NodeId, node.ContinuationToken);
|
||||
node.Loading = false;
|
||||
BrowseNodeResult result;
|
||||
try
|
||||
{
|
||||
result = await BrowseService.BrowseChildrenAsync(
|
||||
_runtimeSiteId, _runtimeConnectionName, node.NodeId, node.ContinuationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
node.Loading = false;
|
||||
}
|
||||
|
||||
if (result.Failure is not null)
|
||||
{
|
||||
@@ -266,6 +280,8 @@
|
||||
_searchActive = false;
|
||||
_searchResults = new();
|
||||
_searchCapReached = false;
|
||||
_failure = null;
|
||||
_failureMessage = "";
|
||||
StateHasChanged();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user