2017-08-30 01:16:23 -04:00
|
|
|
<script>
|
2018-03-27 15:19:20 -04:00
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
name: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
2017-08-30 01:16:23 -04:00
|
|
|
},
|
2018-03-27 15:19:20 -04:00
|
|
|
showPanels: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2017-08-30 01:16:23 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2018-11-16 15:07:38 -05:00
|
|
|
<div v-if="showPanels" class="card prometheus-panel">
|
2018-04-10 13:11:34 -04:00
|
|
|
<div class="card-header">
|
2018-01-05 09:31:01 -05:00
|
|
|
<h4>{{ name }}</h4>
|
2017-08-30 01:16:23 -04:00
|
|
|
</div>
|
2018-11-16 15:07:38 -05:00
|
|
|
<div class="card-body prometheus-graph-group"><slot></slot></div>
|
2018-02-22 03:55:29 -05:00
|
|
|
</div>
|
2018-11-16 15:07:38 -05:00
|
|
|
<div v-else class="prometheus-graph-group"><slot></slot></div>
|
2017-08-30 01:16:23 -04:00
|
|
|
</template>
|