summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-22 02:55:29 -0600
committerMike Greiling <mike@pixelcog.com>2018-03-06 03:11:39 -0600
commit283183d8881e41508c8d70c18e275e2890fe8ec3 (patch)
treeb77da7f6b09ab692be628df0050a553b308b6fdc
parent999ea368b7fe8dbec16bea7ff8fee3e7c6d93332 (diff)
downloadgitlab-ce-283183d8881e41508c8d70c18e275e2890fe8ec3.tar.gz
remove prometheus panel styling on cluster monitoring page
-rw-r--r--app/assets/javascripts/monitoring/components/dashboard.vue6
-rw-r--r--app/assets/javascripts/monitoring/components/graph_group.vue16
2 files changed, 21 insertions, 1 deletions
diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue
index f1d61a1c360..04374d2e1db 100644
--- a/app/assets/javascripts/monitoring/components/dashboard.vue
+++ b/app/assets/javascripts/monitoring/components/dashboard.vue
@@ -26,6 +26,11 @@
required: false,
default: true,
},
+ showPanels: {
+ type: Boolean,
+ required: false,
+ default: true,
+ },
forceSmallGraph: {
type: Boolean,
required: false,
@@ -159,6 +164,7 @@
v-for="(groupData, index) in store.groups"
:key="index"
:name="groupData.group"
+ :show-panels="showPanels"
>
<graph
v-for="(graphData, index) in groupData.metrics"
diff --git a/app/assets/javascripts/monitoring/components/graph_group.vue b/app/assets/javascripts/monitoring/components/graph_group.vue
index 079351a69af..f71cf614552 100644
--- a/app/assets/javascripts/monitoring/components/graph_group.vue
+++ b/app/assets/javascripts/monitoring/components/graph_group.vue
@@ -5,12 +5,20 @@
type: String,
required: true,
},
+ showPanels: {
+ type: Boolean,
+ required: false,
+ default: true,
+ },
},
};
</script>
<template>
- <div class="panel panel-default prometheus-panel">
+ <div
+ v-if="showPanels"
+ class="panel panel-default prometheus-panel"
+ >
<div class="panel-heading">
<h4>{{ name }}</h4>
</div>
@@ -18,4 +26,10 @@
<slot></slot>
</div>
</div>
+ <div
+ v-else
+ class="prometheus-graph-group"
+ >
+ <slot></slot>
+ </div>
</template>