fix: added tasks tab in lead/deal
This commit is contained in:
parent
a706435902
commit
ca0a4e0f26
@ -476,6 +476,7 @@
|
|||||||
label="Send email"
|
label="Send email"
|
||||||
@click="$refs.emailBox.show = true"
|
@click="$refs.emailBox.show = true"
|
||||||
/>
|
/>
|
||||||
|
<Button v-else-if="title == 'Tasks'" variant="solid" label="Create task" />
|
||||||
</div>
|
</div>
|
||||||
<CommunicationArea
|
<CommunicationArea
|
||||||
ref="emailBox"
|
ref="emailBox"
|
||||||
@ -490,6 +491,7 @@ import UserAvatar from '@/components/UserAvatar.vue'
|
|||||||
import EmailIcon from '@/components/Icons/EmailIcon.vue'
|
import EmailIcon from '@/components/Icons/EmailIcon.vue'
|
||||||
import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
|
import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
|
||||||
import NoteIcon from '@/components/Icons/NoteIcon.vue'
|
import NoteIcon from '@/components/Icons/NoteIcon.vue'
|
||||||
|
import TaskIcon from '@/components/Icons/TaskIcon.vue'
|
||||||
import DurationIcon from '@/components/Icons/DurationIcon.vue'
|
import DurationIcon from '@/components/Icons/DurationIcon.vue'
|
||||||
import PlayIcon from '@/components/Icons/PlayIcon.vue'
|
import PlayIcon from '@/components/Icons/PlayIcon.vue'
|
||||||
import LeadsIcon from '@/components/Icons/LeadsIcon.vue'
|
import LeadsIcon from '@/components/Icons/LeadsIcon.vue'
|
||||||
@ -682,6 +684,8 @@ const emptyText = computed(() => {
|
|||||||
text = 'No call logs'
|
text = 'No call logs'
|
||||||
} else if (props.title == 'Notes') {
|
} else if (props.title == 'Notes') {
|
||||||
text = 'No notes'
|
text = 'No notes'
|
||||||
|
} else if (props.title == 'Tasks') {
|
||||||
|
text = 'No tasks'
|
||||||
}
|
}
|
||||||
return text
|
return text
|
||||||
})
|
})
|
||||||
@ -692,6 +696,8 @@ const emptyTextIcon = computed(() => {
|
|||||||
icon = PhoneIcon
|
icon = PhoneIcon
|
||||||
} else if (props.title == 'Notes') {
|
} else if (props.title == 'Notes') {
|
||||||
icon = NoteIcon
|
icon = NoteIcon
|
||||||
|
} else if (props.title == 'Tasks') {
|
||||||
|
icon = TaskIcon
|
||||||
}
|
}
|
||||||
return h(icon, { class: 'text-gray-500' })
|
return h(icon, { class: 'text-gray-500' })
|
||||||
})
|
})
|
||||||
|
|||||||
@ -342,6 +342,7 @@
|
|||||||
import ActivityIcon from '@/components/Icons/ActivityIcon.vue'
|
import ActivityIcon from '@/components/Icons/ActivityIcon.vue'
|
||||||
import EmailIcon from '@/components/Icons/EmailIcon.vue'
|
import EmailIcon from '@/components/Icons/EmailIcon.vue'
|
||||||
import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
|
import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
|
||||||
|
import TaskIcon from '@/components/Icons/TaskIcon.vue'
|
||||||
import NoteIcon from '@/components/Icons/NoteIcon.vue'
|
import NoteIcon from '@/components/Icons/NoteIcon.vue'
|
||||||
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
|
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
|
||||||
import CameraIcon from '@/components/Icons/CameraIcon.vue'
|
import CameraIcon from '@/components/Icons/CameraIcon.vue'
|
||||||
@ -446,6 +447,10 @@ const tabs = [
|
|||||||
label: 'Calls',
|
label: 'Calls',
|
||||||
icon: PhoneIcon,
|
icon: PhoneIcon,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Tasks',
|
||||||
|
icon: TaskIcon,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Notes',
|
label: 'Notes',
|
||||||
icon: NoteIcon,
|
icon: NoteIcon,
|
||||||
|
|||||||
@ -314,6 +314,7 @@
|
|||||||
import ActivityIcon from '@/components/Icons/ActivityIcon.vue'
|
import ActivityIcon from '@/components/Icons/ActivityIcon.vue'
|
||||||
import EmailIcon from '@/components/Icons/EmailIcon.vue'
|
import EmailIcon from '@/components/Icons/EmailIcon.vue'
|
||||||
import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
|
import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
|
||||||
|
import TaskIcon from '@/components/Icons/TaskIcon.vue'
|
||||||
import NoteIcon from '@/components/Icons/NoteIcon.vue'
|
import NoteIcon from '@/components/Icons/NoteIcon.vue'
|
||||||
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
|
import IndicatorIcon from '@/components/Icons/IndicatorIcon.vue'
|
||||||
import LinkIcon from '@/components/Icons/LinkIcon.vue'
|
import LinkIcon from '@/components/Icons/LinkIcon.vue'
|
||||||
@ -347,6 +348,7 @@ import { ref, computed } from 'vue'
|
|||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import CameraIcon from '../components/Icons/CameraIcon.vue'
|
import CameraIcon from '../components/Icons/CameraIcon.vue'
|
||||||
|
|
||||||
|
|
||||||
const { getUser, users } = usersStore()
|
const { getUser, users } = usersStore()
|
||||||
const { contacts } = contactsStore()
|
const { contacts } = contactsStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -423,6 +425,10 @@ const tabs = [
|
|||||||
label: 'Calls',
|
label: 'Calls',
|
||||||
icon: PhoneIcon,
|
icon: PhoneIcon,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Tasks',
|
||||||
|
icon: TaskIcon,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Notes',
|
label: 'Notes',
|
||||||
icon: NoteIcon,
|
icon: NoteIcon,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user