fix: disabled tooltip from email templates listview
This commit is contained in:
parent
966ab3ef8d
commit
4569fa82fe
@ -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,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -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,
|
||||||
}"
|
}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user