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

feat(annotations): Support multiple annotations at a time #1201

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Apr 29, 2020

No description provided.

@mxiao6 mxiao6 requested a review from a team as a code owner April 29, 2020 17:28
@@ -1105,9 +1105,6 @@ class BaseViewer extends EventEmitter {
// Only on success do we exit create annotation mode. If error occurs,
// we remain in create mode
if (status === 'success') {
const activeMode = this.annotationControls.getActiveMode();
this.annotator.toggleAnnotationMode(activeMode);
this.annotationControls.resetControls();
this.annotator.emit('annotations_active_set', id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to remove this, as well? @ConradJChan @mickr

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah I think there's a separate ticket, might as well remove this whole handler while we're at it

Copy link
Contributor

@mickr mickr Apr 29, 2020

Choose a reason for hiding this comment

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

@ConradJChan If we remove the emit this will affect the setActive state when an annotation is created so we will need to follow up on it.

@mergify mergify bot merged commit 976fa7b into box:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants