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
77a8cfdb
Commit
77a8cfdb
authored
Feb 12, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cancel button to On-demand scan form
parent
c126034b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
...ripts/on_demand_scans/components/on_demand_scans_form.vue
+11
-0
No files found.
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
View file @
77a8cfdb
...
...
@@ -310,6 +310,10 @@ export default {
this
.
loading
=
false
;
});
},
onCancelClicked
()
{
this
.
clearStorage
=
true
;
redirectTo
(
this
.
profilesLibraryPath
);
},
showErrors
(
errorType
,
errors
=
[])
{
this
.
errorType
=
errorType
;
this
.
errors
=
errors
;
...
...
@@ -569,6 +573,13 @@ export default {
>
{{ s__('OnDemandScans|Save scan') }}
</gl-button>
<gl-button
data-testid=
"on-demand-scan-cancel-button"
:disabled=
"loading"
@
click=
"onCancelClicked"
>
{{ __('Cancel') }}
</gl-button>
</div>
</template>
</gl-form>
...
...
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