Bridge integration
This commit is contained in:
parent
42a5e09c94
commit
162390008b
56 changed files with 776 additions and 591 deletions
|
|
@ -10,6 +10,7 @@ import { type Database } from "bridge-common";
|
|||
import { generateUpdateAction } from "../lib/actions";
|
||||
import { serviceConfig } from "../config/config";
|
||||
import { FieldDescription } from "../lib/service";
|
||||
import { getBasePath } from "../lib/frontendUtils";
|
||||
|
||||
type EditProps = {
|
||||
service: string;
|
||||
|
|
@ -51,7 +52,7 @@ export const Edit: FC<EditProps> = ({ service, row }) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (formState.success) {
|
||||
router.push(`/${entity}`);
|
||||
router.push(`${getBasePath()}${entity}`);
|
||||
}
|
||||
}, [formState.success, router, entity]);
|
||||
|
||||
|
|
@ -60,14 +61,14 @@ export const Edit: FC<EditProps> = ({ service, row }) => {
|
|||
open
|
||||
title={`Edit ${displayName}`}
|
||||
formAction={formAction}
|
||||
onClose={() => router.push(`/${entity}`)}
|
||||
onClose={() => router.push(`${getBasePath()}${entity}`)}
|
||||
buttons={
|
||||
<Grid container justifyContent="space-between">
|
||||
<Grid item>
|
||||
<Button
|
||||
text="Cancel"
|
||||
kind="secondary"
|
||||
onClick={() => router.push(`/${entity}`)}
|
||||
onClick={() => router.push(`${getBasePath()}${entity}`)}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue