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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
a7a33c21
Commit
a7a33c21
authored
Mar 07, 2019
by
mfluharty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emit submit event instead of passing handler
parent
b5a3004e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
app/assets/javascripts/pipelines/components/pipeline_stop_modal.vue
.../javascripts/pipelines/components/pipeline_stop_modal.vue
+6
-5
app/assets/javascripts/pipelines/components/pipelines_table.vue
...sets/javascripts/pipelines/components/pipelines_table.vue
+1
-1
No files found.
app/assets/javascripts/pipelines/components/pipeline_stop_modal.vue
View file @
a7a33c21
...
...
@@ -24,10 +24,6 @@ export default {
required
:
true
,
deep
:
true
,
},
onSubmit
:
{
type
:
Function
,
required
:
true
,
},
},
computed
:
{
modalTitle
()
{
...
...
@@ -52,6 +48,11 @@ export default {
return
!
_
.
isEmpty
(
this
.
pipeline
.
ref
);
},
},
methods
:
{
emitSubmit
(
event
)
{
this
.
$emit
(
'
submit
'
,
event
);
},
},
};
</
script
>
<
template
>
...
...
@@ -60,7 +61,7 @@ export default {
:header-title-text=
"modalTitle"
:footer-primary-button-text=
"s__('Pipeline|Stop pipeline')"
footer-primary-button-variant=
"danger"
@
submit=
"
onSubmit
"
@
submit=
"
emitSubmit($event)
"
>
<p
v-html=
"modalText"
></p>
...
...
app/assets/javascripts/pipelines/components/pipelines_table.vue
View file @
a7a33c21
...
...
@@ -84,6 +84,6 @@ export default {
:view-type=
"viewType"
:canceling-pipeline=
"cancelingPipeline"
/>
<pipeline-stop-modal
:pipeline=
"pipeline"
:on-
submit=
"onSubmit"
/>
<pipeline-stop-modal
:pipeline=
"pipeline"
@
submit=
"onSubmit"
/>
</div>
</
template
>
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