Merge branch 'dev' of ssh://git.codelfi.com:2202/TelemedPro/hgh_admin into dev
This commit is contained in:
@@ -37,6 +37,16 @@ const downloadFile = (fileUrl) => {
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
};
|
||||
const downloadImage = async (imageUrl) => {
|
||||
try {
|
||||
const response = await fetch(imageUrl)
|
||||
const blob = await response.blob()
|
||||
const fileName = imageUrl.split('/').pop()
|
||||
saveAs(blob, fileName)
|
||||
} catch (error) {
|
||||
console.error('Error downloading image:', error) }
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -64,9 +74,12 @@ const downloadFile = (fileUrl) => {
|
||||
<span class="app-timeline-title" v-if="p_note.note_type=='Notes'">
|
||||
{{p_note.note}}
|
||||
</span>
|
||||
<span class="app-timeline-title" v-if="p_note.note_type=='file'">
|
||||
<img :src="p_note.note"/>
|
||||
</span>
|
||||
|
||||
<span class="app-timeline-title" v-if="p_note.note_type == 'file'">
|
||||
<VIcon>ri-attachment-2</VIcon> <button @click="downloadImage(p_note.note)">Download Image</button>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
<span class="app-timeline-meta">{{ formatDateDate(p_note.created_at) }}</span>
|
||||
<!-- <span></span> -->
|
||||
|
@@ -156,11 +156,12 @@ const close = () => {
|
||||
<!-- full name -->
|
||||
<!-- status -->
|
||||
<template #item.status="{ item }">
|
||||
|
||||
<VChip
|
||||
:color="getStatusColor(item.status)"
|
||||
density="comfortable"
|
||||
>
|
||||
{{ getStatusColor(item.status) }}
|
||||
{{ item.status}}
|
||||
</VChip>
|
||||
</template>
|
||||
|
||||
|
@@ -137,8 +137,7 @@ const resolveUserRoleVariant = role => {
|
||||
<span class="font-weight-medium">
|
||||
Address:
|
||||
</span>
|
||||
<span class="text-body-1">{{ props.userData.telemed.home_address }}
|
||||
<br/> {{ props.userData.telemed.city }},{{ props.userData.telemed.state }} {{ props.userData.telemed.zip_code }}</span>
|
||||
<span class="text-body-1">{{ props.userData.telemed.home_address }}, {{ props.userData.telemed.city }},{{ props.userData.telemed.state }} {{ props.userData.telemed.zip_code }}</span>
|
||||
</VListItemTitle>
|
||||
</VListItem>
|
||||
|
||||
@@ -160,7 +159,7 @@ const resolveUserRoleVariant = role => {
|
||||
<span class="font-weight-medium">
|
||||
Availability:
|
||||
</span>
|
||||
<span class="text-body-1">{{ props.userData.telemed.availability_from }}</span> <span class="text-body-1">{{ props.userData.telemed.availability_to }}</span>
|
||||
<span class="text-body-1">{{ props.userData.telemed.availability_from }}</span> to<span class="text-body-1">{{ props.userData.telemed.availability_to }}</span>
|
||||
</VListItemTitle>
|
||||
</VListItem>
|
||||
|
||||
|
Reference in New Issue
Block a user