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: dialog name incorrect when creating new dialog in form editor #1605

Merged
merged 10 commits into from
Nov 25, 2019

Conversation

alanlong9278
Copy link
Contributor

@alanlong9278 alanlong9278 commented Nov 20, 2019

Description

Wrong behavior

the BeginDialog action can not get the dialog name after the user create a new one from the form. But there is a new beginDialog action with the dialog name in the new dialog trigger steps.
image

image

root cause

in createDialogBase function, it jumps to new dialog after creating the dialog, but the operation that setting the dialog name to the old beginDialog action is in the createDialog promise then function. So the operation in formEditor takes place in the new dialog page.

Solution

Move navTo function from createDialogBase to formEditor function.
createDialogBase just deals with the data logic.

Task Item

closes #1144

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code refactor (non-breaking change which improve code quality, clean up, add tests, etc)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Doc update (document update)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have functionally tested my change

Screenshots

beginDialog

@alanlong9278 alanlong9278 changed the title Fix: dialog name incorrect when creating new dialog in form editor fix: dialog name incorrect when creating new dialog in form editor Nov 21, 2019
@github-actions
Copy link

Coverage Status

Coverage increased (+0.004%) to 39.823% when pulling 010afb9 on julong/beginDialog into f0ebe56 on master.

Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n left a comment

Choose a reason for hiding this comment

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

I still see a flicker when creating a dialog from the form.

@a-b-r-o-w-n a-b-r-o-w-n merged commit 01d70e4 into master Nov 25, 2019
@a-b-r-o-w-n a-b-r-o-w-n deleted the julong/beginDialog branch November 25, 2019 20:18
@a-b-r-o-w-n a-b-r-o-w-n mentioned this pull request Dec 11, 2019
@a-b-r-o-w-n a-b-r-o-w-n mentioned this pull request Dec 11, 2019
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