diff --git a/app/components/SimpleEditor/elements/track_change/TrackChangeControlTool.js b/app/components/SimpleEditor/elements/track_change/TrackChangeControlTool.js index b594f5284ae86ae5125714772776368ff2732bcd..f9c9d23c8f17cd40f60ab30c6e006b1c0cb20bb4 100644 --- a/app/components/SimpleEditor/elements/track_change/TrackChangeControlTool.js +++ b/app/components/SimpleEditor/elements/track_change/TrackChangeControlTool.js @@ -8,7 +8,6 @@ class TrackChangeControlTool extends Tool { if (trackChangesMode === true) el.addClass('track-changes-active') if (!this.canAct()) { - console.log('deffo not') el.attr('disabled', true) } return el @@ -27,9 +26,8 @@ class TrackChangeControlTool extends Tool { } canAct () { - console.log('can act?') const provider = this.context.trackChangesProvider - console.log(provider.canAct()) + // console.log('can act?', provider.canAct()) return provider.canAct() } } diff --git a/app/components/SimpleEditor/elements/track_change/TrackChangePackage.js b/app/components/SimpleEditor/elements/track_change/TrackChangePackage.js index 1be73515089e83a13d760ae1565dec9d16f19262..ae4eef1a9325b8de74dfaf7420f8639c5d11a34d 100644 --- a/app/components/SimpleEditor/elements/track_change/TrackChangePackage.js +++ b/app/components/SimpleEditor/elements/track_change/TrackChangePackage.js @@ -16,11 +16,11 @@ export default { config.addConverter('html', TrackChangeHTMLConverter) // TODO -- both tools should go to the same target - config.addTool('Toggle recording changes', TrackChangeControlTool, { + config.addTool('track-change-enable', TrackChangeControlTool, { target: 'track-change-enable' }) - config.addTool('Toggle tracked changes view', TrackChangeControlViewTool, { + config.addTool('track-change-toggle-view', TrackChangeControlViewTool, { target: 'track-change-toggle-view' }) @@ -30,8 +30,11 @@ export default { config.addIcon('track-change', { 'fontawesome': 'fa-eye' }) - config.addLabel('track-change', { - en: 'Track Changes' + config.addLabel('track-change-enable', { + en: 'Toggle recording changes' + }) + config.addLabel('track-change-toggle-view', { + en: 'Toggle tracked changes view' }) } }