diff --git a/src/Journals/Journal.tsx b/src/Journals/Journal.tsx index f0168c5..d66d2c9 100644 --- a/src/Journals/Journal.tsx +++ b/src/Journals/Journal.tsx @@ -28,6 +28,7 @@ import { historyPersistor } from '../persist-state-history'; interface PropsType { syncInfo: SyncInfo; syncJournal: SyncInfoJournal; + isOwner: boolean; } interface PropsTypeInner extends PropsType { @@ -52,7 +53,7 @@ class Journal extends React.PureComponent { } render() { - const { theme, syncJournal } = this.props; + const { theme, isOwner, syncJournal } = this.props; let currentTab = this.state.tab; let journalOnly = false; @@ -85,13 +86,15 @@ class Journal extends React.PureComponent { return ( - - - + { isOwner && + + + + } Journal not found!); } + const isOwner = syncJournal.journal.owner === this.props.etesync.credentials.email; + const collectionInfo = syncJournal.collection; return ( @@ -81,6 +83,7 @@ class Journals extends React.PureComponent { )} />