This commit is contained in:
2020-10-30 23:22:35 +00:00
parent 6534e2c107
commit 302c9f2d48
2 changed files with 7 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
<v-toolbar flat dense>
<template v-if="hasUrl">
<v-btn text icon :to="moreUrl">
<template v-if="showCount && count > 0">
<template v-if="count > 0">
<v-badge overlap>
<template v-slot:badge>
{{ count }}
@@ -19,7 +19,7 @@
</v-btn>
</template>
<template v-else>
<template v-if="showCount && count > 0">
<template v-if="count > 0">
<v-badge overlap class="mr-4">
<template v-slot:badge>
{{ count }}
@@ -120,10 +120,9 @@ export default {
},
title: String,
moreUrl: String,
showCount: Boolean,
count: { type: Number, default: 0 },
updateFrequency: { type: Number, default: 60000 },
icon: String
icon: { type: String, default: "$ayiTachometer" }
},
computed: {
hasUrl: function() {