Don't immediately stop on click, rely on popconfirm

This commit is contained in:
Pat Hartl 2023-04-16 19:41:28 -05:00
parent 73a6371b53
commit 1a84c4c51a

View file

@ -56,7 +56,7 @@
@if (Status.GetValueOrDefault(context.Id) == ServerProcessStatus.Running) @if (Status.GetValueOrDefault(context.Id) == ServerProcessStatus.Running)
{ {
<Popconfirm OnConfirm="() => Stop(context)" Title="Are you sure you want to kill this server process?"> <Popconfirm OnConfirm="() => Stop(context)" Title="Are you sure you want to kill this server process?">
<Button Danger Type="@ButtonType.Primary" OnClick="() => Stop(context)">Stop</Button> <Button Danger Type="@ButtonType.Primary">Stop</Button>
</Popconfirm> </Popconfirm>
} }
</SpaceItem> </SpaceItem>