Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Fix cancel action in log level select (elastic#181007)
## Summary Part of elastic#158861 elastic#180607 added a new log level selector in Agent Policy settings. However there were some small bugs with it. This PR addresses all of them: - Extra dot in copy text - A broken link was displayed - Made this link optional - When clicking "Cancel", all the other fields on the page reset back to their original values but the log level doesn't. The reason is the no default was set for the select ### Before ![image (19)](https://github.com/elastic/kibana/assets/16084106/bc310642-5425-4413-8cfa-aff03557f2eb) ### After ![Screenshot 2024-04-17 at 10 50 04](https://github.com/elastic/kibana/assets/16084106/30fc6797-7297-496e-9ec7-209e04a44bba) ### Testing - Enable `hidden: false` [here](https://github.com/elastic/kibana/blob/bc9cd862f04430f4e50e7da2a11f16bc80756e9c/x-pack/plugins/fleet/common/settings/agent_policy_settings.ts#L133) - Change the log level and then click "cancel" on the bottom of the page, it should reset back to the default value ("info" if the policy is new, the previous saved value if the policy already had this value set) - No extra dot and link should be visible
- Loading branch information