forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Notes] - disable add note button in flyout is use…
…r lacks privileges (elastic#201707) ## Summary This PR fixes a small issue where users could click on the add button in the alert details flyout even if they did not have the correct privileges. When the user has the correct privileges, the UI does not change. In the flyout: - if no notes have previously been created for the document, we show a `Add note` button - if some notes have previously been created for the document, we show the number of notes and a plus button icon https://github.com/user-attachments/assets/d9a27b70-99b1-4562-8224-4f5c2f25b001 When the user does not have the correct privileges, the flyout UI now shows the following: - if no notes have previously been created for the document, we show a `-` - if one or more notes have been created for the document, we show the number of notes followed by a `View note(s)` button, that - when clicked - opens the left panel for the user to view the notes https://github.com/user-attachments/assets/8ebe8bf5-16ab-4652-b4d3-47507c2d3673 elastic#201702 ### Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information
1 parent
97318c9
commit c7b5b35
Showing
3 changed files
with
140 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters