Clicking "Apply" for bulk action for compliance framework displays incorrect toast message
Summary
Clicking "Apply" for bulk action for compliance framework displays incorrect toast message.
Steps to reproduce
The "Apply" button is active after applying a framework to selected projects in "Secure > Compliance report". If you click it (again and again), the toast says "Framework successfully removed" which is incorrect because nothing was removed.
What is the current bug behavior?
Incorrect toast message appearing
What is the expected correct behavior?
Either the correct toast message appears or the action is not accessible in the current state of the flow.
Relevant logs and/or screenshots
CleanShot_2023-08-11_at_09.58.13
Possible fixes
- After applying a framework, set the "Apply" button to it's default state ("disabled")
- If "Apply" is meant to be active then display the correct toast message "Framework successfully added"