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