debian-mirror-gitlab/app/assets/javascripts/monitoring/components/graph_group.vue

36 lines
539 B
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2018-05-09 12:01:36 +05:30
export default {
props: {
name: {
type: String,
required: true,
2018-03-17 18:26:18 +05:30
},
2018-05-09 12:01:36 +05:30
showPanels: {
type: Boolean,
required: false,
default: true,
},
},
};
2018-03-17 18:26:18 +05:30
</script>
<template>
2019-01-03 12:48:30 +05:30
<div
v-if="showPanels"
class="card prometheus-panel"
>
2018-11-08 19:23:39 +05:30
<div class="card-header">
2018-03-17 18:26:18 +05:30
<h4>{{ name }}</h4>
</div>
2019-01-03 12:48:30 +05:30
<div class="card-body prometheus-graph-group">
<slot></slot>
</div>
</div>
<div
v-else
class="prometheus-graph-group"
>
<slot></slot>
2018-03-27 19:54:05 +05:30
</div>
2018-03-17 18:26:18 +05:30
</template>