|
|
@ -28,6 +28,7 @@ import { historyPersistor } from '../persist-state-history';
|
|
|
|
interface PropsType {
|
|
|
|
interface PropsType {
|
|
|
|
syncInfo: SyncInfo;
|
|
|
|
syncInfo: SyncInfo;
|
|
|
|
syncJournal: SyncInfoJournal;
|
|
|
|
syncJournal: SyncInfoJournal;
|
|
|
|
|
|
|
|
isOwner: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface PropsTypeInner extends PropsType {
|
|
|
|
interface PropsTypeInner extends PropsType {
|
|
|
@ -52,7 +53,7 @@ class Journal extends React.PureComponent<PropsTypeInner> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { theme, syncJournal } = this.props;
|
|
|
|
const { theme, isOwner, syncJournal } = this.props;
|
|
|
|
let currentTab = this.state.tab;
|
|
|
|
let currentTab = this.state.tab;
|
|
|
|
let journalOnly = false;
|
|
|
|
let journalOnly = false;
|
|
|
|
|
|
|
|
|
|
|
@ -85,13 +86,15 @@ class Journal extends React.PureComponent<PropsTypeInner> {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
<AppBarOverride title={collectionInfo.displayName}>
|
|
|
|
<AppBarOverride title={collectionInfo.displayName}>
|
|
|
|
<IconButton
|
|
|
|
{ isOwner &&
|
|
|
|
component={Link}
|
|
|
|
<IconButton
|
|
|
|
title="Edit"
|
|
|
|
component={Link}
|
|
|
|
{...{to: routeResolver.getRoute('journals._id.edit', { journalUid: journal.uid })}}
|
|
|
|
title="Edit"
|
|
|
|
>
|
|
|
|
{...{to: routeResolver.getRoute('journals._id.edit', { journalUid: journal.uid })}}
|
|
|
|
<IconEdit />
|
|
|
|
>
|
|
|
|
</IconButton>
|
|
|
|
<IconEdit />
|
|
|
|
|
|
|
|
</IconButton>
|
|
|
|
|
|
|
|
}
|
|
|
|
</AppBarOverride>
|
|
|
|
</AppBarOverride>
|
|
|
|
<Tabs
|
|
|
|
<Tabs
|
|
|
|
fullWidth={true}
|
|
|
|
fullWidth={true}
|
|
|
|