[FE] Hide Validity Token Status When Opt-in is off
Problem to Solve
Now that Opt-in is live, we need to add a conditional check to hide the token status when it is disabled. Current behaviour is that the FE displays the default value of Possibly Active Secret when it is disabled but this might confuse users who think that the worker is still running even though I've confirmed it is not.
Implementation plan
-
Send data[:validity_checks_enabled] = finding.project.security_setting&.validity_checks_enabledfrom the BEee/app/helpers/vulnerabilities_helper.rb -
Add && this.vulnerability.validityChecksEnabledtoshouldRenderValidityCheckinee/app/assets/javascripts/vulnerabilities/components/vulnerability_details.vue
Edited by Radu Birsan