Added pop confirm for deleting files

dhcp-server
Pat Hartl 2023-09-10 17:30:26 -05:00
parent bc35e2337e
commit c12b834571
1 changed files with 8 additions and 1 deletions

View File

@ -45,7 +45,14 @@
</SpaceItem> </SpaceItem>
<SpaceItem> <SpaceItem>
<Tooltip Title="Delete" MouseEnterDelay="2"> <Tooltip Title="Delete" MouseEnterDelay="2">
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.Delete" OnClick="Delete" Disabled="@(Selected.Count() == 0)" /> <Popconfirm OnConfirm="Delete">
<TitleTemplate>
Are you sure you want to delete the selected file@(Selected.Count() == 1 ? "" : "s")?
</TitleTemplate>
<ChildContent>
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.Delete" Disabled="@(Selected.Count() == 0)" />
</ChildContent>
</Popconfirm>
</Tooltip> </Tooltip>
</SpaceItem> </SpaceItem>
</Space> </Space>