Skip to content
Snippets Groups Projects
Commit 5f5be212 authored by chris's avatar chris Committed by john
Browse files

resolved comments work in mini editor

parent 7fe8edaf
No related branches found
No related tags found
No related merge requests found
...@@ -30,10 +30,7 @@ class MiniEditor extends ProseEditor { ...@@ -30,10 +30,7 @@ class MiniEditor extends ProseEditor {
let ScrollPane = this.componentRegistry.get('scroll-pane') let ScrollPane = this.componentRegistry.get('scroll-pane')
let Overlay = this.componentRegistry.get('overlay') let Overlay = this.componentRegistry.get('overlay')
// TEMP
// const commentsPane = $$('ul').addClass('sc-comment-pane-list').addClass('sc-comments-pane').append('notes Editor Comments')
var commentsPane = $$(Comments, { var commentsPane = $$(Comments, {
// TODO -- should probably remove the || {}
comments: this.props.comments || {}, comments: this.props.comments || {},
fragment: this.props.fragment, fragment: this.props.fragment,
update: this.props.update, update: this.props.update,
...@@ -94,8 +91,8 @@ class MiniEditor extends ProseEditor { ...@@ -94,8 +91,8 @@ class MiniEditor extends ProseEditor {
// comments provider // comments provider
const commentsProvider = new CommentsProvider(doc, { const commentsProvider = new CommentsProvider(doc, {
commandManager: this.commandManager, commandManager: this.commandManager,
// comments: this.props.fragment.comments, comments: this.props.fragment.comments,
containerId: this.props.containerId, containerId: 'body',
controller: this, controller: this,
editorSession: this.editorSession, editorSession: this.editorSession,
fragment: this.props.fragment, fragment: this.props.fragment,
......
...@@ -101,7 +101,6 @@ class CommentBox extends Component { ...@@ -101,7 +101,6 @@ class CommentBox extends Component {
const comments = this.props.comments const comments = this.props.comments
const id = this.props.entry.id const id = this.props.entry.id
const provider = this.getProvider() const provider = this.getProvider()
console.log('this props', this.props)
const user = this.props.user.username const user = this.props.user.username
let textarea = this.refs.commentReply let textarea = this.refs.commentReply
......
...@@ -365,7 +365,6 @@ class CommentsProvider extends TocProvider { ...@@ -365,7 +365,6 @@ class CommentsProvider extends TocProvider {
// const update = this.config.update // const update = this.config.update
const { comments, fragment, update } = this.config const { comments, fragment, update } = this.config
const id = commentId const id = commentId
if (!comments[id]) return if (!comments[id]) return
comments[id].resolved = resolvedId comments[id].resolved = resolvedId
......
...@@ -87,7 +87,6 @@ class Notes extends Component { ...@@ -87,7 +87,6 @@ class Notes extends Component {
} }
saveNotes (source) { saveNotes (source) {
console.log('save???')
const provider = this.getProvider() const provider = this.getProvider()
const notes = provider.computeEntries() const notes = provider.computeEntries()
let self = this let self = this
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment