-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Cases] Allow custom toast title and content in cases hooks #128145
[Cases] Allow custom toast title and content in cases hooks #128145
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
@elasticmachine merge upstream |
1 similar comment
@elasticmachine merge upstream |
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
…ustom-toast-messsage-for-hooks
…ustom-toast-messsage-for-hooks
d83d52a
to
f682a6a
Compare
…ustom-toast-messsage-for-hooks
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.
Tested and LGTM!
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @academo |
Summary
Closes: #127968
Updated logic:
if any custom title or content is passed, those will display.
If at least one of the passed attachments is an alert, the toast will show an alert-specific message.
if none of the attachments are alerts, or no attachments are passed. The toast will show a "generic" updated title and no content.
For all cases the "view case" link will show.