Added hideLabel prop

This commit is contained in:
Douglas Barone 2022-12-12 08:13:08 -04:00
parent 5386273dc4
commit 7711724437
2 changed files with 16 additions and 4 deletions

View File

@ -66,12 +66,23 @@ export default {
suggestedMax1: { suggestedMax1: {
type: Number, type: Number,
default: 80 default: 80
},
hideLabels: {
type: Boolean,
default: false
} }
}, },
data: () => ({}), data: () => ({}),
computed: { computed: {
chartOptions() { chartOptions() {
return { return {
plugins: this.hideLabels
? {
legend: {
display: false
}
}
: undefined,
responsive: true, responsive: true,
maintainAspectRatio: false, maintainAspectRatio: false,

View File

@ -3,7 +3,7 @@
<v-toolbar dense flat> <v-toolbar dense flat>
<v-spacer /> <v-spacer />
<v-select <v-select
style="max-width: 300px" style="max-width: 250px"
v-model="minutesIn" v-model="minutesIn"
hide-details hide-details
outlined outlined
@ -30,11 +30,11 @@
> >
<v-card flat outlined> <v-card flat outlined>
<v-card-title <v-card-title
class="title font-weight-light text-sm-body-1 pb-0 pt-2 px-2" class="title font-weight-light text-sm-body-1 pb-1 pt-2 px-2"
> >
{{ subnet.name }} - {{ subnet.cidr }} {{ subnet.name }} - {{ subnet.cidr }}
<v-spacer /> <v-spacer />
<v-chip small color="primary"> <v-chip small color="primary" outlined>
{{ subnet.stats[0].clients }} {{ subnet.stats[0].clients }}
</v-chip> </v-chip>
</v-card-title> </v-card-title>
@ -46,7 +46,8 @@
:suggested-max1=" :suggested-max1="
maxUsage > 100000000000 ? maxUsage : 100000000000 maxUsage > 100000000000 ? maxUsage : 100000000000
" "
:height="150" :height="130"
hide-labels
/> />
</v-card-text> </v-card-text>
</v-card> </v-card>