Skip to content

Make code-snippet modal resuable in Security Configuration

Dheeraj Joshi requested to merge djadmin-reusable-snippet-modal into master

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)
image image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Dheeraj Joshi

Merge request reports