Make code-snippet modal resuable in Security Configuration
Related Issue - #330721 (closed)
What does this MR do?
This MR makes ConfigurationSnippetModal
reusable by adding a prop scanType
.
Why
ConfigurationSnippetModal
component is currently being used for API Fuzzing
Configuration. We plan to use the similar modal for DAST
Configuration (by #330721 (closed)), and reusing the component will
- avoid code duplication
- when we add features like Syntax highlighting, it will apply to both configurations
Screenshots (strongly suggested)
No changes
before | after (no change) |
---|---|
Does this MR meet the acceptance criteria?
Conformity
- [-] I have included a changelog entry, or it's not needed. (Does this MR need a changelog?)
- [-] I have added/updated documentation, or it's not needed. (Is documentation required?)
-
I have properly separated EE content from FOSS, or this MR is FOSS only. (Where should EE code go?) -
I have self-reviewed this MR per code review guidelines. -
This MR does not harm performance, or I have asked a reviewer to help assess the performance impact. (Merge request performance guidelines)
Availability and Testing
-
I have added/updated tests following the Testing Guide, or it's not needed. (Consider all test levels. See the Test Planning Process.) -
I have tested this MR in all supported browsers, or it's not needed.
Edited by Dheeraj Joshi