cluster: fix type of element

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-24 12:07:28 -07:00
parent 6f6eb1c3ae
commit 5881f7fb09
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
<template> <template>
<router-link draggable="false" class="cluster fill-block" :class="{ error }" :to="target" @click.native="click"> <component
:is="link ? 'router-link' : 'div'"
draggable="false"
class="cluster fill-block"
:class="{ error }"
:to="target"
@click="click"
>
<div class="count-bubble" v-if="counters && data.count"> <div class="count-bubble" v-if="counters && data.count">
<NcCounterBubble> {{ data.count }} </NcCounterBubble> <NcCounterBubble> {{ data.count }} </NcCounterBubble>
</div> </div>
@ -22,7 +29,7 @@
<div v-if="title || subtitle" class="overlay top-left fill-block" /> <div v-if="title || subtitle" class="overlay top-left fill-block" />
</div> </div>
</div> </div>
</router-link> </component>
</template> </template>
<script lang="ts"> <script lang="ts">