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