-
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
Disable edit tag "save changes" button if no changes have been made #138500
Disable edit tag "save changes" button if no changes have been made #138500
Conversation
Pinging @elastic/kibana-core (Team:Core) |
const initialName = useMemo(() => tag.name, []); | ||
|
||
const initialTag = useMemo(() => tag, []); | ||
const tagHasBeenModified = useMemo( |
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.
Seemed a shame to import lodash isEqual here to compare 3 properties of an object so kept it simple
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.
Changes looks good. Could you add a test in x-pack/test/saved_object_tagging/functional/tests/edit.ts
?
@rudolf I've added the tests 👍 |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @hop-dev |
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.
👍 Thanks!
…lastic#138500) (cherry picked from commit 945d456)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#138500) (elastic#138714) (cherry picked from commit 945d456) Co-authored-by: Mark Hopkin <[email protected]>
Summary
Closes #138493 which was raised by Fleet QA.
In the edit tag modal, disable the "save changes" button until the user makes changes to the tag
save_changes_btn.mov