1
0
forked from test/crm

fix: only add loading if loading and no data

This commit is contained in:
Shariq Ansari 2024-03-20 13:22:27 +05:30
parent 76c68d3349
commit 51165ce848

View File

@ -155,8 +155,8 @@
/>
<div v-else>
<div
v-if="deal_contacts?.loading"
class="flex min-h-10 flex-1 items-center justify-center gap-3 text-base text-gray-500"
v-if="deal_contacts?.loading && deal_contacts?.data?.length == 0"
class="flex min-h-20 flex-1 items-center justify-center gap-3 text-base text-gray-500"
>
<LoadingIndicator class="h-4 w-4" />
<span>Loading...</span>