Fix 'delete all' for client scopes (#3062)
This commit is contained in:
parent
965d86dce5
commit
4b04a83fbd
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,6 @@ export const ClientScopes = ({
|
|||
);
|
||||
|
||||
const [addDialogOpen, setAddDialogOpen] = useState(false);
|
||||
const [kebabOpen, setKebabOpen] = useState(false);
|
||||
|
||||
const [rest, setRest] = useState<ClientScopeRepresentation[]>();
|
||||
const [selectedRows, setSelectedRows] = useState<Row[]>([]);
|
||||
|
@ -195,6 +194,8 @@ export const ClientScopes = ({
|
|||
});
|
||||
|
||||
const ManagerToolbarItems = () => {
|
||||
const [kebabOpen, setKebabOpen] = useState(false);
|
||||
|
||||
if (!isManager) return <span />;
|
||||
|
||||
return (
|
||||
|
@ -235,6 +236,7 @@ export const ClientScopes = ({
|
|||
);
|
||||
|
||||
setKebabOpen(false);
|
||||
setSelectedRows([]);
|
||||
addAlert(
|
||||
t("clients:clientScopeRemoveSuccess"),
|
||||
AlertVariant.success
|
||||
|
|
Loading…
Reference in a new issue