Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2024-01-24 12:59:32 +00:00 committed by GitHub
parent 85ddac26ed
commit 4061abf588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -227,6 +227,10 @@ export const RealmOverrides = ({
}), }),
continueButtonLabel: "delete", continueButtonLabel: "delete",
continueButtonVariant: ButtonVariant.danger, continueButtonVariant: ButtonVariant.danger,
onCancel: () => {
setSelectedRowKeys([]);
setAreAllRowsSelected(false);
},
onConfirm: async () => { onConfirm: async () => {
try { try {
for (const key of selectedRowKeys) { for (const key of selectedRowKeys) {
@ -563,6 +567,8 @@ export const RealmOverrides = ({
setSelectedRowKeys([ setSelectedRowKeys([
(row.cells?.[0] as IRowCell).props.value, (row.cells?.[0] as IRowCell).props.value,
]); ]);
messageBundles.length === 1 &&
setAreAllRowsSelected(true);
toggleDeleteDialog(); toggleDeleteDialog();
setKebabOpen(false); setKebabOpen(false);
}, },