Skip to content

Commit

Permalink
✨ Set application delete as danger kebab menu item (konveyor#1829)
Browse files Browse the repository at this point in the history
Part of konveyor#1318 

Resolves: https://issues.redhat.com/browse/MTA-2261

---------

Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
Co-authored-by: Scott Dickerson <sdickers@redhat.com>
  • Loading branch information
mguetta1 and sjd78 committed Apr 11, 2024
1 parent 5975dbe commit 0c7cd84
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1018,15 +1018,6 @@ export const ApplicationsTable: React.FC = () => {
},
]
: []),
...(applicationWriteAccess
? [
{
title: t("actions.delete"),
onClick: () =>
setApplicationsToDelete([application]),
},
]
: []),
...(dependenciesWriteAccess
? [
{
Expand Down Expand Up @@ -1072,6 +1063,17 @@ export const ApplicationsTable: React.FC = () => {
},
]
: []),
...(applicationWriteAccess
? [
{ isSeparator: true },
{
title: t("actions.delete"),
onClick: () =>
setApplicationsToDelete([application]),
isDanger: true,
},
]
: []),
]}
/>
</Td>
Expand Down

0 comments on commit 0c7cd84

Please sign in to comment.