1
0
forked from test/crm

fix: disabled tooltip from organizations listview

This commit is contained in:
Shariq Ansari 2024-02-19 14:15:50 +05:30
parent 175d711abc
commit 464a6d5098
2 changed files with 12 additions and 3 deletions

View File

@ -8,6 +8,7 @@
params: { organizationId: row.name }, params: { organizationId: row.name },
}), }),
selectable: options.selectable, selectable: options.selectable,
showTooltip: options.showTooltip,
}" }"
row-key="name" row-key="name"
> >
@ -32,12 +33,13 @@
/> />
</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"
@ -51,7 +53,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>
@ -88,6 +94,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'
@ -104,6 +111,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

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