|
|
|
@ -153,12 +153,14 @@ const CollectionRoutes = withStyles(styles)(withRouter(
|
|
|
|
|
<Route
|
|
|
|
|
path={routeResolver.getRoute(props.routePrefix + '._id.edit')}
|
|
|
|
|
exact
|
|
|
|
|
render={({ match }) => (
|
|
|
|
|
render={({ match }) => {
|
|
|
|
|
const itemUid = decodeURIComponent(match.params.itemUid);
|
|
|
|
|
return (
|
|
|
|
|
<Container style={{ maxWidth: '30rem' }}>
|
|
|
|
|
{(match.params.itemUid in props.items) &&
|
|
|
|
|
{(itemUid in props.items) &&
|
|
|
|
|
<ComponentEdit
|
|
|
|
|
initialCollection={(props.items[match.params.itemUid] as any).journalUid}
|
|
|
|
|
item={props.items[match.params.itemUid]}
|
|
|
|
|
initialCollection={(props.items[itemUid] as any).journalUid}
|
|
|
|
|
item={props.items[itemUid]}
|
|
|
|
|
collections={props.collections}
|
|
|
|
|
onSave={props.onItemSave}
|
|
|
|
|
onDelete={props.onItemDelete}
|
|
|
|
@ -167,7 +169,8 @@ const CollectionRoutes = withStyles(styles)(withRouter(
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
</Container>
|
|
|
|
|
)}
|
|
|
|
|
);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path={routeResolver.getRoute(props.routePrefix + '._id.log')}
|
|
|
|
@ -176,7 +179,7 @@ const CollectionRoutes = withStyles(styles)(withRouter(
|
|
|
|
|
<Container>
|
|
|
|
|
<ItemChangeLog
|
|
|
|
|
syncInfo={props.syncInfo}
|
|
|
|
|
paramItemUid={match.params.itemUid}
|
|
|
|
|
paramItemUid={decodeURIComponent(match.params.itemUid)}
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
|
|
|
|
)}
|
|
|
|
@ -216,7 +219,7 @@ const CollectionRoutes = withStyles(styles)(withRouter(
|
|
|
|
|
Edit
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<ComponentView item={props.items[match.params.itemUid]} />
|
|
|
|
|
<ComponentView item={props.items[decodeURIComponent(match.params.itemUid)]} />
|
|
|
|
|
</Container>
|
|
|
|
|
)}
|
|
|
|
|
/>
|
|
|
|
|