BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2e66da48
Unverified
Commit
2e66da48
authored
Feb 22, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option to hide the graph legend
parent
76b65bb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
dashboard.vue
app/assets/javascripts/monitoring/components/dashboard.vue
+6
-0
graph.vue
app/assets/javascripts/monitoring/components/graph.vue
+9
-1
No files found.
app/assets/javascripts/monitoring/components/dashboard.vue
View file @
2e66da48
...
...
@@ -21,6 +21,11 @@
type
:
String
,
required
:
true
,
},
showLegend
:
{
type
:
Boolean
,
required
:
false
,
default
:
true
,
},
documentationPath
:
{
type
:
String
,
required
:
true
,
...
...
@@ -159,6 +164,7 @@
:deployment-data=
"store.deploymentData"
:project-path=
"projectPath"
:tags-path=
"tagsPath"
:show-legend=
"showLegend"
/>
</graph-group>
</div>
...
...
app/assets/javascripts/monitoring/components/graph.vue
View file @
2e66da48
...
...
@@ -52,6 +52,11 @@
type
:
String
,
required
:
true
,
},
showLegend
:
{
type
:
Boolean
,
required
:
false
,
default
:
true
,
},
},
data
()
{
...
...
@@ -182,7 +187,9 @@
this
.
graphHeightOffset
,
);
if
(
this
.
timeSeries
.
length
>
3
)
{
if
(
!
this
.
showLegend
)
{
this
.
baseGraphHeight
-=
60
;
}
else
if
(
this
.
timeSeries
.
length
>
3
)
{
this
.
baseGraphHeight
=
this
.
baseGraphHeight
+=
(
this
.
timeSeries
.
length
-
3
)
*
20
;
}
...
...
@@ -246,6 +253,7 @@
transform=
"translate(70, 20)"
/>
<graph-legend
v-if=
"showLegend"
:graph-width=
"graphWidth"
:graph-height=
"graphHeight"
:margin=
"margin"
...
...
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