Skip to content

Emitting event on trashcan close.#4056

Merged
moniika merged 2 commits into
RaspberryPiFoundation:developfrom
moniika:trash-flyout-events
Jul 21, 2020
Merged

Emitting event on trashcan close.#4056
moniika merged 2 commits into
RaspberryPiFoundation:developfrom
moniika:trash-flyout-events

Conversation

@moniika

@moniika moniika commented Jul 20, 2020

Copy link
Copy Markdown
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#4033

Proposed Changes

Adds logic for emitting event when trashcan is closed and adds helper for opening/closing trashcan flyout.

Reason for Changes

Adding helpers makes the connection between showing/hiding flyout and emitting event for open/close clearer.
Event for closing trashcan flyout is consistent with behavior of other similarly named Ui events.

Test Coverage

Tested on playground by observing event logging.

Tested on:

  • Desktop Chrome

Additional Information

The change in #4034 in combination with this change will cause event to be emitted when block is dragged out of trashcan flyout.

@moniika
moniika requested a review from rachel-fenichel July 20, 2020 22:22

@rachel-fenichel rachel-fenichel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, though I have one comment on naming.

Comment thread core/trashcan.js Outdated
@moniika
moniika merged commit 26993a1 into RaspberryPiFoundation:develop Jul 21, 2020
@moniika
moniika deleted the trash-flyout-events branch July 21, 2020 20:15
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