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
a66ceca3
Commit
a66ceca3
authored
Feb 11, 2020
by
Maxime Orefice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new endpoint test counter badge
parent
fcc2bdb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/pipelines/pipeline_details_bundle.js
app/assets/javascripts/pipelines/pipeline_details_bundle.js
+1
-1
app/views/projects/pipelines/show.html.haml
app/views/projects/pipelines/show.html.haml
+2
-1
No files found.
app/assets/javascripts/pipelines/pipeline_details_bundle.js
View file @
a66ceca3
...
@@ -114,7 +114,7 @@ export default () => {
...
@@ -114,7 +114,7 @@ export default () => {
});
});
axios
axios
.
get
(
dataset
.
testReportEndpoint
)
.
get
(
dataset
.
testReport
sCount
Endpoint
)
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
document
.
querySelector
(
'
.js-test-report-badge-counter
'
).
innerHTML
=
data
.
total_count
;
document
.
querySelector
(
'
.js-test-report-badge-counter
'
).
innerHTML
=
data
.
total_count
;
})
})
...
...
app/views/projects/pipelines/show.html.haml
View file @
a66ceca3
...
@@ -21,4 +21,5 @@
...
@@ -21,4 +21,5 @@
=
render
"projects/pipelines/with_tabs"
,
pipeline:
@pipeline
=
render
"projects/pipelines/with_tabs"
,
pipeline:
@pipeline
.js-pipeline-details-vue
{
data:
{
endpoint:
project_pipeline_path
(
@project
,
@pipeline
,
format: :json
),
.js-pipeline-details-vue
{
data:
{
endpoint:
project_pipeline_path
(
@project
,
@pipeline
,
format: :json
),
test_report_endpoint:
test_report_project_pipeline_path
(
@project
,
@pipeline
,
format: :json
)
}
}
test_report_endpoint:
test_report_project_pipeline_path
(
@project
,
@pipeline
,
format: :json
),
test_reports_count_endpoint:
test_reports_count_project_pipeline_path
(
@project
,
@pipeline
,
format: :json
)
}
}
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