This commit is contained in:
Inshal
2024-06-11 01:48:23 +05:00
parent 8666ea2033
commit e443b1c869
4 changed files with 28 additions and 23 deletions

View File

@@ -47,7 +47,6 @@ const headers = [
{ key: 'start_time', title: 'Start Time' },
{ key: 'end_time', title: 'End Time' },
{ key: 'duration', title: 'Duration' },
{ title: 'Actions', key: 'profile' }, // Add this line
];
function totalCallDuration(start_time, end_time) {
@@ -111,11 +110,6 @@ const historyDetail = (item, value) => {
if(value == 'prescription')
router.push('/admin/patient/meeting/prescription/' + route.params.id + '/' + item.id);
}
const viewProfile = (item) => {
console.log('Viewing profile for', item);
// Navigate to the profile page (modify the route as per your application structure)
router.push('/admin/providers/patientprofile/' + item.patient_id);
}
const menusVariant = [
'primary'
@@ -164,10 +158,6 @@ const options = [
>
<template #item.id="{ item }">{{ item.id }}</template>
<template #item.duration="{ item }">{{ item.duration }}</template>
<!-- Profile Button -->
<template #item.profile="{ item }">
<v-btn class="text-capitalize text-white" @click="viewProfile(item)">Profile</v-btn>
</template>
<!-- Actions -->
<template #item.actions="{ item }">
<div class="demo-space-x">