From 6ff5a3ccd4856251328ce1b4b59f3c011d399886 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 17 Feb 2017 16:41:19 +0200 Subject: [PATCH] comments--> not disaplying comments pane --- app/components/SimpleEditor/config.js | 15 ++++++++------- .../SimpleEditor/panes/Comments/CommentBox.js | 3 +-- .../panes/Comments/CommentsProvider.js | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/components/SimpleEditor/config.js b/app/components/SimpleEditor/config.js index 0984a6a..2a97b95 100644 --- a/app/components/SimpleEditor/config.js +++ b/app/components/SimpleEditor/config.js @@ -12,8 +12,9 @@ import { SubscriptPackage, SuperscriptPackage, SwitchTextTypePackage, - SpellCheckPackage, - CodeblockPackage + SpellCheckPackage + // ListPackage + // CodeblockPackage } from 'substance' // My Elements @@ -48,15 +49,15 @@ let config = { config.import(CodePackage) config.import(PersistencePackage) + // config.import(CodeblockPackage) + config.import(CommentPackage) + config.import(ExtractPackage) + config.import(ImagePackage) config.import(LinkPackage) - config.import(SpellCheckPackage) config.import(ListPackage) - config.import(CodeblockPackage) - config.import(ExtractPackage) config.import(NotePackage) config.import(SourceNotePackage) - config.import(ImagePackage) - config.import(CommentPackage) + config.import(SpellCheckPackage) config.import(TrackChangePackage) } } diff --git a/app/components/SimpleEditor/panes/Comments/CommentBox.js b/app/components/SimpleEditor/panes/Comments/CommentBox.js index 453c569..8e9fa86 100644 --- a/app/components/SimpleEditor/panes/Comments/CommentBox.js +++ b/app/components/SimpleEditor/panes/Comments/CommentBox.js @@ -15,8 +15,7 @@ class CommentBox extends Component { // TODO -- fix class names render ($$) { - const {active, entry} = this.props - + const { active, entry } = this.props let comments = this.props.comments.data if (!active) { diff --git a/app/components/SimpleEditor/panes/Comments/CommentsProvider.js b/app/components/SimpleEditor/panes/Comments/CommentsProvider.js index ebf2403..e013645 100644 --- a/app/components/SimpleEditor/panes/Comments/CommentsProvider.js +++ b/app/components/SimpleEditor/panes/Comments/CommentsProvider.js @@ -67,6 +67,7 @@ class CommentsProvider extends TocProvider { // runs when document session is updated updateActiveEntry () { + console.log('updateActiveEntry') const activeEntry = this.getActiveEntry() const selectionContainsComments = this.selectionContainsComments() -- GitLab