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 },
}),
selectable: options.selectable,
showTooltip: options.showTooltip,
}"
row-key="name"
>
@ -32,12 +33,13 @@
/>
</div>
</template>
<div
<Tooltip
:text="item.label"
v-if="['modified', 'creation'].includes(column.key)"
class="truncate text-base"
>
{{ item.timeAgo }}
</div>
</Tooltip>
<div v-else-if="column.type === 'Check'">
<FormControl
type="checkbox"
@ -51,7 +53,11 @@
</ListRows>
<ListSelectBanner>
<template #actions="{ selections, unselectAll }">
<Button variant="subtle" label="Edit" @click="editValues(selections, unselectAll)">
<Button
variant="subtle"
label="Edit"
@click="editValues(selections, unselectAll)"
>
<template #prefix>
<EditIcon class="h-3 w-3" />
</template>
@ -88,6 +94,7 @@ import {
ListSelectBanner,
ListRowItem,
ListFooter,
Tooltip,
} from 'frappe-ui'
import { ref, watch } from 'vue'
@ -104,6 +111,7 @@ const props = defineProps({
type: Object,
default: () => ({
selectable: true,
showTooltip: true,
totalCount: 0,
rowCount: 0,
}),

View File

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