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

Add callback props onModalLabelOk and onModalLabelCancel to DigitizeButton #888

Merged
merged 2 commits into from
Sep 20, 2018

Conversation

jansule
Copy link
Member

@jansule jansule commented Sep 20, 2018

FEATURE

Description:

The digitizeButton was lacking a callback function after clicking on OK and CANCEL in the modal that pops up when adding a label. The properties onModalLabelOk and onModalLabelCancel now implement this.

onModalLabelOk returns the added feature as well as the text content of the input field in the modal.

onModalLabelCancel does not return anything.

Edit: Added onModalLabelCancel to desription

Copy link
Member

@dnlkoch dnlkoch left a comment

Choose a reason for hiding this comment

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

Nice!

Could you also provide a callback for the cancel-button?

@jansule
Copy link
Member Author

jansule commented Sep 20, 2018

Sure

@jansule jansule changed the title Add callback prop onModalLabelOk to DigitizeButton Add callback props onModalLabelOk and onModalLabelCancel to DigitizeButton Sep 20, 2018
@dnlkoch dnlkoch merged commit b8df5f6 into terrestris:master Sep 20, 2018
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.

None yet

2 participants