Commit aef22ce3 authored by Dave Pisek's avatar Dave Pisek

DAST on-demand site profiles: prevent error banner from showing

This commit puts a feature flag before a request to prevent an
error-banner from showing due to accessing a non-existing graphql
endpoint.
parent c873e289
...@@ -152,8 +152,11 @@ export default { ...@@ -152,8 +152,11 @@ export default {
async created() { async created() {
if (this.isEdit) { if (this.isEdit) {
this.validateTargetUrl(); this.validateTargetUrl();
if (this.glFeatures.securityOnDemandScansSiteValidation) {
await this.fetchValidationStatus(); await this.fetchValidationStatus();
} }
}
}, },
methods: { methods: {
validateTargetUrl() { validateTargetUrl() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment