diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-22 11:55:29 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 12:11:39 +0300 |
commit | 283183d8881e41508c8d70c18e275e2890fe8ec3 (patch) | |
tree | b77da7f6b09ab692be628df0050a553b308b6fdc /app/assets | |
parent | 999ea368b7fe8dbec16bea7ff8fee3e7c6d93332 (diff) |
remove prometheus panel styling on cluster monitoring page
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/monitoring/components/dashboard.vue | 6 | ||||
-rw-r--r-- | app/assets/javascripts/monitoring/components/graph_group.vue | 16 |
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> |