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
Jérome Perrin
gitlab-ce
Commits
1bf74bfd
Commit
1bf74bfd
authored
May 17, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves string to a constant
parent
f4aced6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
app/assets/javascripts/pipelines/components/pipelines_table_row.vue
.../javascripts/pipelines/components/pipelines_table_row.vue
+3
-1
app/assets/javascripts/pipelines/components/stage.vue
app/assets/javascripts/pipelines/components/stage.vue
+2
-1
app/assets/javascripts/pipelines/constants.js
app/assets/javascripts/pipelines/constants.js
+1
-1
No files found.
app/assets/javascripts/pipelines/components/pipelines_table_row.vue
View file @
1bf74bfd
...
...
@@ -9,6 +9,7 @@
import
CommitComponent
from
'
../../vue_shared/components/commit.vue
'
;
import
LoadingButton
from
'
../../vue_shared/components/loading_button.vue
'
;
import
Icon
from
'
../../vue_shared/components/icon.vue
'
;
import
{
PIPELINES_TABLE
}
from
'
../constants.js
'
/**
* Pipeline table row.
...
...
@@ -46,6 +47,7 @@
required
:
true
,
},
},
pipelinesTable
:
PIPELINES_TABLE
,
data
()
{
return
{
isRetrying
:
false
,
...
...
@@ -297,7 +299,7 @@
v-for=
"(stage, index) in pipeline.details.stages"
:key=
"index"
>
<pipeline-stage
type=
"PIPELINES_TABLE
"
:type=
"$options.pipelinesTable
"
:stage=
"stage"
:update-dropdown=
"updateGraphDropdown"
/>
...
...
app/assets/javascripts/pipelines/components/stage.vue
View file @
1bf74bfd
...
...
@@ -21,6 +21,7 @@ import Icon from '../../vue_shared/components/icon.vue';
import
LoadingIcon
from
'
../../vue_shared/components/loading_icon.vue
'
;
import
JobComponent
from
'
./graph/job_component.vue
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
{
PIPELINES_TABLE
}
from
'
../constants.js
'
export
default
{
components
:
{
...
...
@@ -141,7 +142,7 @@ export default {
},
pipelineActionRequestComplete
()
{
if
(
this
.
type
===
'
PIPELINES_TABLE
'
)
{
if
(
this
.
type
===
PIPELINES_TABLE
)
{
// warn the table to update
eventHub
.
$emit
(
'
refreshPipelinesTable
'
);
}
else
{
...
...
app/assets/javascripts/pipelines/constants.js
View file @
1bf74bfd
// eslint-disable-next-line import/prefer-default-export
export
const
CANCEL_REQUEST
=
'
CANCEL_REQUEST
'
;
export
const
PIPELINES_TABLE
=
'
PIPELINES_TABLE
'
;
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