-
Notifications
You must be signed in to change notification settings - Fork 49
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
19874 Changed some snackbar messages to dialogs #660
Conversation
- used error dialog for "business not in LEAR" scenario - used error dialog for "unable to add business" scenario - used error dialog for "error marking new business" scenario - bolded labels in RegistriesContactInfo component - added generic error dialog component
- update unit tests
@@ -305,6 +315,9 @@ export default class AmalgamatingBusinesses extends Mixins(AmalgamationMixin, Co | |||
allOk = false | |||
snackbar = false | |||
snackbarText = '' | |||
errorDialog = false | |||
errorDialogText = undefined as string | |||
errorDialogTitle = undefined as string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I used "null" here, the dialog didn't use its default prop values. This works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See ticket for example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this affects every usage of this component, but this is the new UI design.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See ticket for examples.
|
||
expect(wrapper.emitted('close')).toBeUndefined() | ||
await wrapper.find('.v-btn').trigger('click') | ||
expect(wrapper.emitted('close')).toEqual([[]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what gets emitted if you don't emit a value.
/gcbrun |
Temporary Url for review: https://business-create-dev--pr-660-bm23wsrw.web.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* - app version = 5.9.5 - used error dialog for "business not in LEAR" scenario - used error dialog for "unable to add business" scenario - used error dialog for "error marking new business" scenario - bolded labels in RegistriesContactInfo component - added generic error dialog component * - created test suite for new dialog * - rename dialog message -> text - update unit tests --------- Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>
Issue #: bcgov/entity#19874
Description of changes:
- app version = 5.9.5
- used error dialog for "business not in LEAR" scenario
- used error dialog for "unable to add business" scenario
- used error dialog for "error marking new business" scenario
- bolded labels in RegistriesContactInfo component
- added generic error dialog component
- created test suite for new dialog
- updated unit tests
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).