parent
1124681603
commit
c187c17945
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ import {
|
||||||
toClientScope,
|
toClientScope,
|
||||||
} from "./routes/ClientScope";
|
} from "./routes/ClientScope";
|
||||||
import { toMapper } from "./routes/Mapper";
|
import { toMapper } from "./routes/Mapper";
|
||||||
|
import { toClientScopes } from "./routes/ClientScopes";
|
||||||
|
|
||||||
export default function EditClientScope() {
|
export default function EditClientScope() {
|
||||||
const { t } = useTranslation("client-scopes");
|
const { t } = useTranslation("client-scopes");
|
||||||
|
@ -137,6 +138,7 @@ export default function EditClientScope() {
|
||||||
try {
|
try {
|
||||||
await adminClient.clientScopes.del({ id });
|
await adminClient.clientScopes.del({ id });
|
||||||
addAlert(t("deletedSuccess"), AlertVariant.success);
|
addAlert(t("deletedSuccess"), AlertVariant.success);
|
||||||
|
navigate(toClientScopes({ realm }));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
addError("client-scopes:deleteError", error);
|
addError("client-scopes:deleteError", error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue