-
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
[SecuritySolution] Add success toast to timeline deletion #99612
[SecuritySolution] Add success toast to timeline deletion #99612
Conversation
💚 Build SucceededMetrics [docs]Async chunks
Unknown metric groupsReferences to deprecated APIs
To update your PR or re-run it, just comment with: cc @machadoum |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
const internalCloseModal = useCallback(() => { | ||
if (onComplete != null) { | ||
onComplete(); | ||
} | ||
}, [onComplete]); | ||
const onDelete = useCallback(() => { | ||
if (savedObjectIds != null) { |
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.
TypeScript says that it can't be null.
color: 'success', | ||
iconType: 'check', | ||
}, | ||
addSuccess({ |
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.
Small refactor. Uses addSuccess
intead of dispatchToaster
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.
LTGM! Tested locally and everything is working as expected! 🚀
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…99765) * Add success toast to timeline deletion * Add unit tests for timeline deletion toast * Refactor export_timeline to use useAppToasts instead of useStateToaster Co-authored-by: Kibana Machine <[email protected]>
Summary
closes #99326
useAppToasts
instead ofuseStateToaster
Steps to verify:
Checklist
Delete any items that are not applicable to this PR.