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

View File

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