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

track changes get saved in notes editor

parent 63da9e76
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ class ContainerEditor extends SubstanceContainerEditor { ...@@ -87,7 +87,7 @@ class ContainerEditor extends SubstanceContainerEditor {
} }
onTextInput (event) { onTextInput (event) {
if (!this.props.trackChanges) return super.onTextInput(event) if (!this.props.trackChanges) return super.onTextInput(event)
console.log('after')
this.handleTracking({ this.handleTracking({
event: event, event: event,
status: 'add', status: 'add',
......
...@@ -33,9 +33,11 @@ class TrackChangeComponent extends AnnotationComponent { ...@@ -33,9 +33,11 @@ class TrackChangeComponent extends AnnotationComponent {
container.addClass('sc-accept-reject-container-hide') container.addClass('sc-accept-reject-container-hide')
} }
let el = $$('span') let el = $$('track-change')
.attr('data-id', id) .attr('data-id', id)
.attr('title', user.username) .attr('title', user.username)
.attr('status', status)
.attr('roles', user.roles[0])
.addClass(this.getClassNames()) .addClass(this.getClassNames())
.append(this.props.children) .append(this.props.children)
......
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