fix: disabled tooltip from email templates listview

This commit is contained in:
Shariq Ansari 2024-02-19 14:22:26 +05:30
parent 966ab3ef8d
commit 4569fa82fe
2 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,7 @@
:options="{ :options="{
onRowClick: (row) => emit('showEmailTemplate', row.name), onRowClick: (row) => emit('showEmailTemplate', row.name),
selectable: options.selectable, selectable: options.selectable,
showTooltip: options.showTooltip,
}" }"
row-key="name" row-key="name"
> >
@ -21,12 +22,13 @@
<!-- <template #prefix> <!-- <template #prefix>
</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.key === 'status'" class="truncate text-base"> <div v-else-if="column.key === 'status'" class="truncate text-base">
<Badge <Badge
:variant="'subtle'" :variant="'subtle'"
@ -98,6 +100,7 @@ import {
ListRowItem, ListRowItem,
ListFooter, ListFooter,
call, call,
Tooltip,
} from 'frappe-ui' } from 'frappe-ui'
import { ref, watch } from 'vue' import { ref, watch } from 'vue'
@ -114,6 +117,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="emailTemplates.data.columns" :columns="emailTemplates.data.columns"
:options="{ :options="{
showTooltip: false,
rowCount: emailTemplates.data.row_count, rowCount: emailTemplates.data.row_count,
totalCount: emailTemplates.data.total_count, totalCount: emailTemplates.data.total_count,
}" }"