openaev
openaev copied to clipboard
[frontend] Disable buttons if contract is null
Proposed changes
- Manage screens when a payload is deleted (disable buttons, set the correct tag as deleted).
- Validate if an inject has a contract.
Related issues
- https://github.com/OpenBAS-Platform/openbas/issues/1141
Checklist
- [x] I consider the submitted work as finished
- [x] I tested the code for its functionality
- [ ] I wrote test cases for the relevant uses case
- [ ] I added/update the relevant documentation (either on github or on notion)
- [x] Where necessary I refactored code to improve the overall quality
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
Codecov Report
Attention: Patch coverage is 14.32927% with 281 lines in your changes missing coverage. Please review.
Project coverage is 28.78%. Comparing base (
8fd335b) to head (db4e3e3).
Additional details and impacted files
@@ Coverage Diff @@
## master #1193 +/- ##
============================================
+ Coverage 28.61% 28.78% +0.16%
- Complexity 1279 1286 +7
============================================
Files 507 507
Lines 12964 13007 +43
Branches 742 736 -6
============================================
+ Hits 3710 3744 +34
- Misses 9096 9105 +9
Partials 158 158
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.