fixed bug (#26453)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
85ddac26ed
commit
4061abf588
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue