Block sharing of old-style journals.

master
Tom Hacohen 6 years ago
parent a0da029631
commit e85d611aa6

@ -48,6 +48,7 @@ class JournalMembers extends React.PureComponent<PropsTypeInner> {
const { members, revokeUser, addMemberOpen } = this.state;
const info = syncJournal.collection;
const sharingAllowed = syncJournal.journal.version > 1;
return (
<>
@ -86,12 +87,24 @@ class JournalMembers extends React.PureComponent<PropsTypeInner> {
</ConfirmationDialog>
{ addMemberOpen &&
<JournalMemberAddDialog
etesync={this.props.etesync}
info={info}
onOk={this.onMemberAdd}
onClose={() => this.setState({ addMemberOpen: false })}
/>
(sharingAllowed ?
<JournalMemberAddDialog
etesync={this.props.etesync}
info={info}
onOk={this.onMemberAdd}
onClose={() => this.setState({ addMemberOpen: false })}
/>
:
<ConfirmationDialog
title="Now Allowed"
labelOk="OK"
open
onOk={() => this.setState({ addMemberOpen: false })}
onClose={() => this.setState({ addMemberOpen: false })}
>
Sharing of old-style journals is not allowed. In order to share this journal, create a new one, and copy its contents over using the "import" dialog. If you are experiencing any issues, please contact support.
</ConfirmationDialog>
)
}
</>
);

Loading…
Cancel
Save