File tree 1 file changed +22
-20
lines changed
client/src/app/pages/applications/applications-table
1 file changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -1010,26 +1010,6 @@ export const ApplicationsTable: React.FC = () => {
1010
1010
} ,
1011
1011
]
1012
1012
: [ ] ) ,
1013
- ...( applicationWriteAccess
1014
- ? [
1015
- {
1016
- isAriaDisabled :
1017
- application . migrationWave !== null ,
1018
- tooltipProps : {
1019
- content :
1020
- application . migrationWave !== null
1021
- ? t (
1022
- "message.cannotDeleteApplicationsAssignedToMigrationWave"
1023
- )
1024
- : "" ,
1025
- } ,
1026
-
1027
- title : t ( "actions.delete" ) ,
1028
- onClick : ( ) =>
1029
- setApplicationsToDelete ( [ application ] ) ,
1030
- } ,
1031
- ]
1032
- : [ ] ) ,
1033
1013
...( dependenciesWriteAccess
1034
1014
? [
1035
1015
{
@@ -1075,6 +1055,28 @@ export const ApplicationsTable: React.FC = () => {
1075
1055
} ,
1076
1056
]
1077
1057
: [ ] ) ,
1058
+ ...( applicationWriteAccess
1059
+ ? [
1060
+ { isSeparator : true } ,
1061
+ {
1062
+ isAriaDisabled :
1063
+ application . migrationWave !== null ,
1064
+ tooltipProps : {
1065
+ content :
1066
+ application . migrationWave !== null
1067
+ ? t (
1068
+ "message.cannotDeleteApplicationsAssignedToMigrationWave"
1069
+ )
1070
+ : "" ,
1071
+ } ,
1072
+
1073
+ title : t ( "actions.delete" ) ,
1074
+ onClick : ( ) =>
1075
+ setApplicationsToDelete ( [ application ] ) ,
1076
+ isDanger : true ,
1077
+ } ,
1078
+ ]
1079
+ : [ ] ) ,
1078
1080
] }
1079
1081
/>
1080
1082
</ Td >
You can’t perform that action at this time.
0 commit comments