1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #5780: Remove summary on delete provider (#2181)

(cherry picked from commit cf535c49fc129188ca456d552000ae5ce25d1770)
This commit is contained in:
Frederick Borges 2022-06-24 10:26:26 +02:00 committed by Tino Vazquez
parent a8cf6565ba
commit d9227e8b5d
2 changed files with 17 additions and 8 deletions

View File

@ -65,7 +65,7 @@ const ProvisionCard = memo(
return (
<SelectCard
action={
(actions?.length > 0 || deleteAction) && (
(actions?.length > 0 || deleteAction || configureAction) && (
<>
{actions?.map((action) => (
<Action key={action?.cy} {...action} />

View File

@ -120,6 +120,7 @@ function Providers() {
handleClick: () =>
show({
id: ID,
delete: true,
title: (
<Translate
word={T.DeleteSomething}
@ -138,13 +139,21 @@ function Providers() {
/>
)}
</Box>
{display && dialogProps?.id && (
<DialogProvider
hide={hide}
id={dialogProps.id}
dialogProps={dialogProps}
/>
)}
{display &&
dialogProps?.id &&
(!dialogProps?.delete ? (
<DialogProvider
hide={hide}
id={dialogProps.id}
dialogProps={dialogProps}
/>
) : (
<DialogConfirmation handleCancel={hide} {...dialogProps}>
<p>
<Translate word={T.DoYouWantProceed} />
</p>
</DialogConfirmation>
))}
</>
)
}