update case index page segment index and show page

This commit is contained in:
Simon Pocrnjič
2025-12-14 20:57:39 +01:00
parent a6ec92ec6b
commit 80948d2944
14 changed files with 1141 additions and 626 deletions
@@ -441,12 +441,18 @@ function doServerRequest(overrides = {}) {
});
const url = route(props.routeName, props.routeParams || {});
router.get(url, q, {
const onlyProps = Array.isArray(props.onlyProps) ? props.onlyProps : [];
const inertiaOptions = {
preserveScroll: props.preserveScroll,
preserveState: props.preserveState,
replace: true,
only: props.onlyProps.length ? props.onlyProps : undefined,
});
};
if (onlyProps.length > 0) {
inertiaOptions.only = onlyProps;
}
router.get(url, q, inertiaOptions);
}
// Row key helper