Commit 6131d5c5 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '324199-prevent-api-spam-branch-selector' into 'master'

Prevent watcher from being triggered unnecessarily

See merge request gitlab-org/gitlab!56378
parents 8379fd26 9696318a
...@@ -70,7 +70,7 @@ const createProfilesApolloOptions = (name, field, { fetchQuery, fetchError }) => ...@@ -70,7 +70,7 @@ const createProfilesApolloOptions = (name, field, { fetchQuery, fetchError }) =>
export default { export default {
SCAN_TYPE_LABEL, SCAN_TYPE_LABEL,
REF_TYPE_BRANCHES, enabledRefTypes: [REF_TYPE_BRANCHES],
saveAndRunScanBtnId: 'scan-submit-button', saveAndRunScanBtnId: 'scan-submit-button',
saveScanBtnId: 'scan-save-button', saveScanBtnId: 'scan-save-button',
components: { components: {
...@@ -445,7 +445,7 @@ export default { ...@@ -445,7 +445,7 @@ export default {
v-model="selectedBranch" v-model="selectedBranch"
data-testid="dast-scan-branch-input" data-testid="dast-scan-branch-input"
no-flip no-flip
:enabled-ref-types="[$options.REF_TYPE_BRANCHES]" :enabled-ref-types="$options.enabledRefTypes"
:project-id="projectPath" :project-id="projectPath"
:translations="{ :translations="{
dropdownHeader: __('Select a branch'), dropdownHeader: __('Select a branch'),
......
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