add links to open whatsapp/telegram
This commit is contained in:
parent
8b8ae239a5
commit
b42eb4f9d5
1 changed files with 12 additions and 6 deletions
|
|
@ -53,16 +53,22 @@ const categoryColors = {
|
|||
<Phone class="h-4 w-4" />
|
||||
<span>{{ item.contact }}</span>
|
||||
<div v-if="item.contactType" class="flex gap-1">
|
||||
<span v-if="item.contactType.includes('whatsapp')"
|
||||
class="bg-green-100 text-green-800 px-2 py-0.5 rounded-full text-xs font-medium flex items-center gap-1">
|
||||
<a v-if="item.contactType.includes('whatsapp')"
|
||||
:href="`https://wa.me/${item.contact.replace(/\D/g, '')}`"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="bg-green-100 text-green-800 px-2 py-0.5 rounded-full text-xs font-medium flex items-center gap-1 hover:bg-green-200 transition-colors">
|
||||
<MessageCircle class="h-3 w-3" />
|
||||
WhatsApp
|
||||
</span>
|
||||
<span v-if="item.contactType.includes('telegram')"
|
||||
class="bg-blue-100 text-blue-800 px-2 py-0.5 rounded-full text-xs font-medium flex items-center gap-1">
|
||||
</a>
|
||||
<a v-if="item.contactType.includes('telegram')"
|
||||
:href="`https://t.me/${item.contact.replace(/\D/g, '')}`"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="bg-blue-100 text-blue-800 px-2 py-0.5 rounded-full text-xs font-medium flex items-center gap-1 hover:bg-blue-200 transition-colors">
|
||||
<MessageCircle class="h-3 w-3" />
|
||||
Telegram
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue