Include the new policy tables in the data

This commit is contained in:
Owen
2026-06-01 17:04:33 -07:00
parent 605dd2f3c9
commit 1625dd1add
4 changed files with 34 additions and 1603 deletions

View File

@@ -96,10 +96,6 @@ export default async function ResourceLayout(props: ResourceLayoutProps) {
title: t("authentication"),
href: `/{orgId}/settings/resources/public/{niceId}/authentication`
});
// navItems.push({
// title: t("rules"),
// href: `/{orgId}/settings/resources/public/{niceId}/rules`
// });
}
return (

View File

@@ -171,7 +171,7 @@ export function EditPolicyRulesSectionForm({
});
const [rules, setRules] = useState<LocalRule[]>(
policy.rules.map((r) => ({ ...r, fromPolicy: !isResourceOverlay }))
policy.rules.map((r) => ({ ...r, fromPolicy: isResourceOverlay }))
);
const [isExpanded, setIsExpanded] = useState(
rulesEnabled || isResourceOverlay