a5fd9dd0bf
* add create client policy form; WIP add client policy tests checkout realm settings test from master RealmSettingsPage.ts master remove comment and add missing translation fix tests PR feedback from Jon and Erik rebase editClientPolicy edit client policy add client policy conditions form fix bug in create form remove comment update help text fixes breadcrumbs add support for adding multiple conditions, deleting conditions, and list conditions in data table clean up names add delete functionality to conditions form PR feedback from Jon useMemo for conditions remove comments and logs remove unused hook PR feedback from Jon messages rename message rebase * remove duplicate value * fixed multi select bug
23 lines
754 B
TypeScript
23 lines
754 B
TypeScript
import type { LocationDescriptorObject } from "history";
|
|
import { generatePath } from "react-router-dom";
|
|
import type { RouteDef } from "../../route-config";
|
|
import { NewClientPolicyForm } from "../NewClientPolicyForm";
|
|
import { EditPolicyCrumb } from "../RealmSettingsSection";
|
|
|
|
export type EditClientPolicyParams = {
|
|
realm: string;
|
|
policyName: string;
|
|
};
|
|
|
|
export const EditClientPolicyRoute: RouteDef = {
|
|
path: "/:realm/realm-settings/clientPolicies/:policyName/edit-policy",
|
|
component: NewClientPolicyForm,
|
|
access: "manage-realm",
|
|
breadcrumb: () => EditPolicyCrumb,
|
|
};
|
|
|
|
export const toEditClientPolicy = (
|
|
params: EditClientPolicyParams
|
|
): LocationDescriptorObject => ({
|
|
pathname: generatePath(EditClientPolicyRoute.path, params),
|
|
});
|