mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-17 07:44:24 +00:00
18 lines
344 B
Vue
18 lines
344 B
Vue
<template>
|
|
<span v-if="isCounterAvailable"
|
|
class="badge rounded-pill bg-danger">
|
|
{{ count }}
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "TabCounter",
|
|
props: ['count'],
|
|
computed: {
|
|
isCounterAvailable() {
|
|
return (typeof this.count !== 'undefined' && this.count > 0 )
|
|
}
|
|
}
|
|
}
|
|
</script> |