Skip to content

Commit

Permalink
Fix: Don't show notification on draw mode exit (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum authored Oct 20, 2017
1 parent 4035d8e commit 43422e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/viewers/BaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,6 @@ class BaseViewer extends EventEmitter {
this.emit('notificationhide');

if (data.data.mode === ANNOTATION_TYPE_DRAW) {
this.emit('notificationshow', __('notification_annotation_draw_mode'));
this.previewUI.replaceHeader(data.data.headerSelector);
}
break;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/__tests__/BaseViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ describe('lib/viewers/BaseViewer', () => {
expect(base.emit).to.be.calledWith('annotatorevent', data);
});

it('should enable controls and exit draw annotation mode with notification', () => {
it('should enable controls and exit draw annotation mode', () => {
const data = {
event: ANNOTATOR_EVENT.modeExit,
data: {
Expand Down

0 comments on commit 43422e4

Please sign in to comment.