fix: disabled tooltip from leads listview

This commit is contained in:
Shariq Ansari 2024-02-19 14:08:46 +05:30
parent 16778bc313
commit b6f86390a3
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@
:options="{
getRowRoute: (row) => ({ name: 'Lead', params: { leadId: row.name } }),
selectable: options.selectable,
showTooltip: options.showTooltip,
}"
row-key="name"
>
@ -57,7 +58,8 @@
<PhoneIcon class="h-4 w-4" />
</div>
</template>
<div
<Tooltip
:text="item.label"
v-if="
[
'modified',
@ -70,7 +72,7 @@
class="truncate text-base"
>
{{ item.timeAgo }}
</div>
</Tooltip>
<div
v-else-if="column.key === 'sla_status'"
class="truncate text-base"
@ -144,6 +146,7 @@ import {
ListFooter,
Dropdown,
call,
Tooltip,
} from 'frappe-ui'
import { setupBulkActions, createToast } from '@/utils'
import { globalStore } from '@/stores/global'
@ -163,6 +166,7 @@ const props = defineProps({
type: Object,
default: () => ({
selectable: true,
showTooltip: true,
totalCount: 0,
rowCount: 0,
}),

View File

@ -23,6 +23,7 @@
:rows="rows"
:columns="leads.data.columns"
:options="{
showTooltip: false,
rowCount: leads.data.row_count,
totalCount: leads.data.total_count,
}"