Update webapp/components/_new/generic/CounterIcon/CounterIcon.vue

Applied v-if only to the span tag

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
Tarun Samanta 2023-09-26 20:37:53 +05:30 committed by GitHub
parent d07fa4be0e
commit 8699d1049e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
<template v-show="cappedCount > 0">
<template>
<span class="counter-icon">
<base-icon :name="icon" />
<span :class="counterClass">{{ cappedCount }}</span>
<span v-if="count > 0" :class="counterClass">{{ cappedCount }}</span>
</span>
</template>