Skip to content

Commit

Permalink
update clean up disks wording and modal style
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Jun 6, 2024
1 parent 02650da commit 386e111
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/routes/backingImage/DiskStateMapActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ const confirm = Modal.confirm
function DiskStateMapActions({ selectedRows, deleteButtonDisabled, deleteButtonLoading, deleteDisksOnBackingImage }) {
const deleteButtonClick = () => {
confirm({
title: `Are you sure to clean up the image file from the disks (${selectedRows.map(item => item.disk).join(',')}) ?`,
width: 'fit-content',
title: (
<>
<p>Are you sure you want to remove the image file from the disks ?</p>
<ul>
{selectedRows.map(item => <li>{item.disk}</li>)}
</ul>
</>
),
onOk() {
deleteDisksOnBackingImage(selectedRows)
},
Expand Down

0 comments on commit 386e111

Please sign in to comment.