fix: remove selectable from contact/organizations lead/deal/contact listview

This commit is contained in:
Shariq Ansari 2023-11-13 13:42:50 +05:30
parent 2f6b55e7bd
commit 289bc4df22
3 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,7 @@
:rows="rows"
:options="{
getRowRoute: (row) => ({ name: 'Contact', params: { contactId: row.name } }),
selectable: options.selectable,
}"
row-key="name"
>
@ -70,5 +71,11 @@ const props = defineProps({
type: Array,
required: true,
},
options: {
type: Object,
default: () => ({
selectable: true,
}),
},
})
</script>

View File

@ -181,12 +181,14 @@
v-if="tab.label === 'Leads' && rows.length"
:rows="rows"
:columns="columns"
:options="{ selectable: false }"
/>
<DealsListView
class="mt-4"
v-else-if="tab.label === 'Deals' && rows.length"
:rows="rows"
:columns="columns"
:options="{ selectable: false }"
/>
<div
v-if="!rows.length"

View File

@ -137,18 +137,21 @@
v-if="tab.label === 'Leads' && rows.length"
:rows="rows"
:columns="columns"
:options="{ selectable: false }"
/>
<DealsListView
class="mt-4"
v-if="tab.label === 'Deals' && rows.length"
:rows="rows"
:columns="columns"
:options="{ selectable: false }"
/>
<ContactsListView
class="mt-4"
v-if="tab.label === 'Contacts' && rows.length"
:rows="rows"
:columns="columns"
:options="{ selectable: false }"
/>
<div
v-if="!rows.length"