1
0
forked from test/crm

fix: disabled tooltip from contacts listview

This commit is contained in:
Shariq Ansari 2024-02-19 14:14:19 +05:30
parent dd9080a69a
commit 175d711abc
3 changed files with 13 additions and 4 deletions

View File

@ -9,6 +9,7 @@
params: { contactId: row.name }, params: { contactId: row.name },
}), }),
selectable: options.selectable, selectable: options.selectable,
showTooltip: options.showTooltip,
}" }"
row-key="name" row-key="name"
> >
@ -45,12 +46,13 @@
<PhoneIcon class="h-4 w-4" /> <PhoneIcon class="h-4 w-4" />
</div> </div>
</template> </template>
<div <Tooltip
:text="item.label"
v-if="['modified', 'creation'].includes(column.key)" v-if="['modified', 'creation'].includes(column.key)"
class="truncate text-base" class="truncate text-base"
> >
{{ item.timeAgo }} {{ item.timeAgo }}
</div> </Tooltip>
<div v-else-if="column.type === 'Check'"> <div v-else-if="column.type === 'Check'">
<FormControl <FormControl
type="checkbox" type="checkbox"
@ -64,7 +66,11 @@
</ListRows> </ListRows>
<ListSelectBanner> <ListSelectBanner>
<template #actions="{ selections, unselectAll }"> <template #actions="{ selections, unselectAll }">
<Button variant="subtle" label="Edit" @click="editValues(selections, unselectAll)"> <Button
variant="subtle"
label="Edit"
@click="editValues(selections, unselectAll)"
>
<template #prefix> <template #prefix>
<EditIcon class="h-3 w-3" /> <EditIcon class="h-3 w-3" />
</template> </template>
@ -103,6 +109,7 @@ import {
ListSelectBanner, ListSelectBanner,
ListRowItem, ListRowItem,
ListFooter, ListFooter,
Tooltip,
} from 'frappe-ui' } from 'frappe-ui'
import { ref, watch } from 'vue' import { ref, watch } from 'vue'
@ -119,6 +126,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

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

View File

@ -191,7 +191,7 @@
v-if="tab.label === 'Contacts' && rows.length" v-if="tab.label === 'Contacts' && rows.length"
:rows="rows" :rows="rows"
:columns="columns" :columns="columns"
:options="{ selectable: false }" :options="{ selectable: false, showTooltip: false, }"
/> />
<div <div
v-if="!rows.length" v-if="!rows.length"