Added pop confirm for deleting files
parent
bc35e2337e
commit
c12b834571
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue