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
1e64d9a0
Commit
1e64d9a0
authored
Feb 14, 2022
by
Savas Vedova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add loading spinner to submit button
parent
5e885455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ee/app/assets/javascripts/vulnerabilities/components/new_vulnerability/new_vulnerability.vue
...lities/components/new_vulnerability/new_vulnerability.vue
+1
-1
ee/spec/frontend/vulnerabilities/new_vulnerability/new_vulnerability_spec.js
...lnerabilities/new_vulnerability/new_vulnerability_spec.js
+2
-0
No files found.
ee/app/assets/javascripts/vulnerabilities/components/new_vulnerability/new_vulnerability.vue
View file @
1e64d9a0
...
...
@@ -225,7 +225,7 @@ export default {
type=
"submit"
variant=
"confirm"
class=
"js-no-auto-disable gl-mr-3"
:
disabled
=
"submitting"
:
loading
=
"submitting"
>
{{
$options
.
i18n
.
submitVulnerability
}}
</gl-button
>
<gl-button
...
...
ee/spec/frontend/vulnerabilities/new_vulnerability/new_vulnerability_spec.js
View file @
1e64d9a0
...
...
@@ -123,6 +123,8 @@ describe('New vulnerability component', () => {
findSectionDetails
().
vm
.
$emit
(
'
change
'
,
inputs
.
sectionDetails
);
findSectionSolution
().
vm
.
$emit
(
'
change
'
,
inputs
.
sectionSolution
);
findForm
().
vm
.
$emit
(
'
submit
'
,
{
preventDefault
:
jest
.
fn
()
});
await
nextTick
();
expect
(
findSubmitButton
().
props
(
'
loading
'
)).
toBe
(
true
);
await
waitForPromises
();
};
...
...
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