Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f4188054
Commit
f4188054
authored
Feb 23, 2022
by
Savas Vedova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add autocomplete off to text inputs
parent
7c54b4fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
ee/app/assets/javascripts/vulnerabilities/components/new_vulnerability/new_vulnerability.vue
...lities/components/new_vulnerability/new_vulnerability.vue
+1
-1
ee/app/assets/javascripts/vulnerabilities/components/new_vulnerability/section_identifiers.vue
...ties/components/new_vulnerability/section_identifiers.vue
+2
-2
ee/spec/frontend/vulnerabilities/new_vulnerability/new_vulnerability_spec.js
...lnerabilities/new_vulnerability/new_vulnerability_spec.js
+4
-0
No files found.
ee/app/assets/javascripts/vulnerabilities/components/new_vulnerability/new_vulnerability.vue
View file @
f4188054
...
...
@@ -207,7 +207,7 @@ export default {
{{
$options
.
i18n
.
description
}}
</p>
</header>
<gl-form
@
submit.prevent=
"submitForm"
>
<gl-form
autocomplete=
"off"
@
submit.prevent=
"submitForm"
>
<gl-alert
v-if=
"shouldShowAlert"
variant=
"danger"
dismissible
@
dismiss=
"dismissAlert"
>
<ul
v-if=
"errors.length > 1"
class=
"gl-mb-0 gl-pl-5"
>
<li
v-for=
"error in errors"
:key=
"error"
>
{{
error
}}
</li>
...
...
ee/app/assets/javascripts/vulnerabilities/components/new_vulnerability/section_identifiers.vue
View file @
f4188054
...
...
@@ -122,10 +122,10 @@ export default {
:aria-label=
"$options.i18n.removeIdentifierRow"
@
click=
"removeIdentifier(index)"
/>
<!--
<!--
The first row does not contain a remove button and this creates
a misalignment. This button is here as a placeholder to align the rows,
it's not visible to the user but it occupies the space hence aligns the
it's not visible to the user but it occupies the space hence aligns the
rows properly.
-->
<gl-button
...
...
ee/spec/frontend/vulnerabilities/new_vulnerability/new_vulnerability_spec.js
View file @
f4188054
...
...
@@ -91,6 +91,10 @@ describe('New vulnerability component', () => {
expect
(
wrapper
.
findComponent
(
GlForm
).
exists
()).
toBe
(
true
);
});
it
(
'
has autocomplete turned off
'
,
()
=>
{
expect
(
wrapper
.
findComponent
(
GlForm
).
attributes
(
'
autocomplete
'
)).
toBe
(
'
off
'
);
});
it
.
each
`
section | selector | fields
${
'
Name and Description
'
}
|
${
findSectionName
}
|
${
inputs
.
sectionName
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment