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 [addDialogOpen, setAddDialogOpen] = useState(false);
|
||||||
const [kebabOpen, setKebabOpen] = useState(false);
|
|
||||||
|
|
||||||
const [rest, setRest] = useState<ClientScopeRepresentation[]>();
|
const [rest, setRest] = useState<ClientScopeRepresentation[]>();
|
||||||
const [selectedRows, setSelectedRows] = useState<Row[]>([]);
|
const [selectedRows, setSelectedRows] = useState<Row[]>([]);
|
||||||
|
@ -195,6 +194,8 @@ export const ClientScopes = ({
|
||||||
});
|
});
|
||||||
|
|
||||||
const ManagerToolbarItems = () => {
|
const ManagerToolbarItems = () => {
|
||||||
|
const [kebabOpen, setKebabOpen] = useState(false);
|
||||||
|
|
||||||
if (!isManager) return <span />;
|
if (!isManager) return <span />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -235,6 +236,7 @@ export const ClientScopes = ({
|
||||||
);
|
);
|
||||||
|
|
||||||
setKebabOpen(false);
|
setKebabOpen(false);
|
||||||
|
setSelectedRows([]);
|
||||||
addAlert(
|
addAlert(
|
||||||
t("clients:clientScopeRemoveSuccess"),
|
t("clients:clientScopeRemoveSuccess"),
|
||||||
AlertVariant.success
|
AlertVariant.success
|
||||||
|
|
Loading…
Reference in a new issue