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
87daf2ae
Commit
87daf2ae
authored
May 19, 2020
by
Sarah GP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify the file
parent
6ee52539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
app/assets/javascripts/pipelines/pipeline_details_bundle.js
app/assets/javascripts/pipelines/pipeline_details_bundle.js
+8
-10
No files found.
app/assets/javascripts/pipelines/pipeline_details_bundle.js
View file @
87daf2ae
...
...
@@ -14,8 +14,7 @@ import axios from '~/lib/utils/axios_utils';
Vue
.
use
(
Translate
);
const
createPipelinesDetailApp
=
(
mediator
)
=>
{
const
createPipelinesDetailApp
=
mediator
=>
{
// eslint-disable-next-line no-new
new
Vue
({
el
:
'
#js-pipeline-graph-vue
'
,
...
...
@@ -45,9 +44,9 @@ const createPipelinesDetailApp = (mediator) => {
});
},
});
}
}
;
const
createPipelineHeaderApp
=
(
mediator
)
=>
{
const
createPipelineHeaderApp
=
mediator
=>
{
// eslint-disable-next-line no-new
new
Vue
({
el
:
'
#js-pipeline-header-vue
'
,
...
...
@@ -91,9 +90,9 @@ const createPipelineHeaderApp = (mediator) => {
});
},
});
}
}
;
const
createPipelinesTabs
=
(
dataset
)
=>
{
const
createPipelinesTabs
=
dataset
=>
{
const
tabsElement
=
document
.
querySelector
(
'
.pipelines-tabs
'
);
const
testReportsEnabled
=
window
.
gon
&&
window
.
gon
.
features
&&
window
.
gon
.
features
.
junitPipelineView
;
...
...
@@ -106,7 +105,6 @@ const createPipelinesTabs = (dataset) => {
document
.
querySelector
(
'
.pipelines-tabs > li > a.test-tab.active
'
),
);
if
(
isTestTabActive
)
{
testReportsStore
.
dispatch
(
fetchReportsAction
);
}
else
{
...
...
@@ -120,9 +118,9 @@ const createPipelinesTabs = (dataset) => {
tabsElement
.
addEventListener
(
'
click
'
,
tabClickHandler
);
}
}
}
}
;
const
createTestDetails
=
(
detailsEndpoint
)
=>
{
const
createTestDetails
=
detailsEndpoint
=>
{
// eslint-disable-next-line no-new
new
Vue
({
el
:
'
#js-pipeline-tests-detail
'
,
...
...
@@ -144,7 +142,7 @@ const createTestDetails = (detailsEndpoint) => {
document
.
querySelector
(
'
.js-test-report-badge-counter
'
).
innerHTML
=
data
.
total_count
;
})
.
catch
(()
=>
{});
}
}
;
export
default
()
=>
{
const
{
dataset
}
=
document
.
querySelector
(
'
.js-pipeline-details-vue
'
);
...
...
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