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
d770171d
Commit
d770171d
authored
Jul 29, 2019
by
Simon Knox
Committed by
Fatih Acet
Jul 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alerts dropdown to modal - CE1
parent
7395831d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/assets/javascripts/monitoring/components/dashboard.vue
app/assets/javascripts/monitoring/components/dashboard.vue
+3
-1
app/assets/javascripts/monitoring/components/panel_type.vue
app/assets/javascripts/monitoring/components/panel_type.vue
+6
-0
No files found.
app/assets/javascripts/monitoring/components/dashboard.vue
View file @
d770171d
...
@@ -369,7 +369,7 @@ export default {
...
@@ -369,7 +369,7 @@ export default {
</div>
</div>
<div
v-if=
"!showEmptyState"
>
<div
v-if=
"!showEmptyState"
>
<graph-group
<graph-group
v-for=
"
groupData
in groups"
v-for=
"
(groupData, index)
in groups"
:key=
"`$
{groupData.group}.${groupData.priority}`"
:key=
"`$
{groupData.group}.${groupData.priority}`"
:name="groupData.group"
:name="groupData.group"
:show-panels="showPanels"
:show-panels="showPanels"
...
@@ -381,6 +381,7 @@ export default {
...
@@ -381,6 +381,7 @@ export default {
:key=
"`panel-type-$
{graphIndex}`"
:key=
"`panel-type-$
{graphIndex}`"
:graph-data="graphData"
:graph-data="graphData"
:dashboard-width="elWidth"
:dashboard-width="elWidth"
:index="`${index}-${graphIndex}`"
/>
/>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -399,6 +400,7 @@ export default {
...
@@ -399,6 +400,7 @@ export default {
:alerts-endpoint=
"alertsEndpoint"
:alerts-endpoint=
"alertsEndpoint"
:relevant-queries=
"graphData.queries"
:relevant-queries=
"graphData.queries"
:alerts-to-manage=
"getGraphAlerts(graphData.queries)"
:alerts-to-manage=
"getGraphAlerts(graphData.queries)"
:modal-id=
"`alert-modal-$
{index}-${graphIndex}`"
@setAlerts="setAlerts"
@setAlerts="setAlerts"
/>
/>
</monitor-area-chart>
</monitor-area-chart>
...
...
app/assets/javascripts/monitoring/components/panel_type.vue
View file @
d770171d
...
@@ -20,6 +20,11 @@ export default {
...
@@ -20,6 +20,11 @@ export default {
type
:
Number
,
type
:
Number
,
required
:
true
,
required
:
true
,
},
},
index
:
{
type
:
String
,
required
:
false
,
default
:
''
,
},
},
},
computed
:
{
computed
:
{
...
mapState
(
'
monitoringDashboard
'
,
[
'
deploymentData
'
,
'
projectPath
'
]),
...
mapState
(
'
monitoringDashboard
'
,
[
'
deploymentData
'
,
'
projectPath
'
]),
...
@@ -64,6 +69,7 @@ export default {
...
@@ -64,6 +69,7 @@ export default {
:alerts-endpoint=
"alertsEndpoint"
:alerts-endpoint=
"alertsEndpoint"
:relevant-queries=
"graphData.queries"
:relevant-queries=
"graphData.queries"
:alerts-to-manage=
"getGraphAlerts(graphData.queries)"
:alerts-to-manage=
"getGraphAlerts(graphData.queries)"
:modal-id=
"`alert-modal-$
{index}`"
@setAlerts="setAlerts"
@setAlerts="setAlerts"
/>
/>
</monitor-area-chart>
</monitor-area-chart>
...
...
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