Journal entries: support filtering by entry uid.

master
Tom Hacohen 7 years ago
parent ab3ebbff05
commit 30cd979ba8

@ -26,6 +26,7 @@ class JournalEntries extends React.PureComponent {
props: { props: {
journal: EteSync.Journal, journal: EteSync.Journal,
entries: Immutable.List<EteSync.SyncEntry>, entries: Immutable.List<EteSync.SyncEntry>,
uid?: string,
}; };
constructor(props: any) { constructor(props: any) {
@ -64,6 +65,11 @@ class JournalEntries extends React.PureComponent {
name = 'Error processing entry'; name = 'Error processing entry';
uid = ''; uid = '';
} }
if (this.props.uid && (this.props.uid !== uid)) {
return undefined;
}
return ( return (
<ListItem <ListItem
key={idx} key={idx}

Loading…
Cancel
Save