Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add clickHandlers back for all enabled annotation modes #248

Merged
merged 3 commits into from
Jul 26, 2017

Conversation

pramodsum
Copy link
Contributor

  • click handlers were moved into docBase which meant that the image point annotation button no longer had a handler associated with it

- click handlers were moved into docBase which meant that the image
  point annotation button no longer had a handler associated with it
@pramodsum pramodsum requested a review from Minh-Ng July 26, 2017 15:57
Minh Nguyen and others added 2 commits July 26, 2017 09:55
getAnnotationModeClickHandler(mode) {}
/* eslint-enable no-unused-vars */
getAnnotationModeClickHandler(mode) {
if (!mode || !this.isAnnotatable(mode)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can isAnnotatable() just return false if null is passed in?

Copy link
Contributor Author

@pramodsum pramodsum Jul 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It defaults to the value of previewOptions.showAnnotations if no viewer specific options are specified. So ultimately it'll end up doing that

@pramodsum pramodsum merged commit b3dd251 into box:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants