Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
VerticalAlignment="Center"
FontSize="20"
Foreground="{StaticResource Gray60Brush}"
Text="No service instances installed" />
Text="Add an instance to get started" />
</Grid>
</UserControl>
15 changes: 15 additions & 0 deletions src/ServiceControl.Config/UI/Shell/ShellViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ protected override async Task OnActivate(CancellationToken cancellationToken = d
BeginCheckForUpdates();
}

protected override void OnViewLoaded(object view)
{
base.OnViewLoaded(view);

// First run: nothing is installed yet, so open the "choose a setup scenario"
// popup immediately instead of leaving the user on the empty instance list.
// OnViewLoaded fires once, so alt-tabbing back or hitting refresh (both of
// which re-run RefreshInstances) won't re-trigger it, and dismissing the
// popup leaves the user on the NoInstances view.
if (!HasInstances)
{
ShowingMenuOverlay = true;
}
}

public async Task RefreshInstances(CancellationToken cancellationToken = default)
{
HasInstances = InstanceFinder.AllInstances().Any();
Expand Down
Loading