refactor: no need to pass unselectAll method
This commit is contained in:
parent
d9da3dfffa
commit
fd3fc4448e
@ -100,10 +100,9 @@
|
|||||||
/>
|
/>
|
||||||
<EditValueModal
|
<EditValueModal
|
||||||
v-model="showEditModal"
|
v-model="showEditModal"
|
||||||
v-model:unselectAll="unselectAllAction"
|
|
||||||
doctype="Contact"
|
doctype="Contact"
|
||||||
:selectedValues="selectedValues"
|
:selectedValues="selectedValues"
|
||||||
@reload="list.reload()"
|
@reload="reload"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -225,6 +224,11 @@ function bulkActions(selections, unselectAll) {
|
|||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
unselectAllAction.value?.()
|
||||||
|
list.value?.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!list.value?.data) return
|
if (!list.value?.data) return
|
||||||
setupListActions(list.value.data, {
|
setupListActions(list.value.data, {
|
||||||
|
|||||||
@ -132,10 +132,9 @@
|
|||||||
/>
|
/>
|
||||||
<EditValueModal
|
<EditValueModal
|
||||||
v-model="showEditModal"
|
v-model="showEditModal"
|
||||||
v-model:unselectAll="unselectAllAction"
|
|
||||||
doctype="CRM Deal"
|
doctype="CRM Deal"
|
||||||
:selectedValues="selectedValues"
|
:selectedValues="selectedValues"
|
||||||
@reload="list.reload()"
|
@reload="reload"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -276,6 +275,11 @@ function bulkActions(selections, unselectAll) {
|
|||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
unselectAllAction.value?.()
|
||||||
|
list.value?.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!list.value?.data) return
|
if (!list.value?.data) return
|
||||||
setupListActions(list.value.data, {
|
setupListActions(list.value.data, {
|
||||||
|
|||||||
@ -86,10 +86,9 @@
|
|||||||
/>
|
/>
|
||||||
<EditValueModal
|
<EditValueModal
|
||||||
v-model="showEditModal"
|
v-model="showEditModal"
|
||||||
v-model:unselectAll="unselectAllAction"
|
|
||||||
doctype="Email Template"
|
doctype="Email Template"
|
||||||
:selectedValues="selectedValues"
|
:selectedValues="selectedValues"
|
||||||
@reload="list.reload()"
|
@reload="reload"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -210,6 +209,11 @@ function bulkActions(selections, unselectAll) {
|
|||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
unselectAllAction.value?.()
|
||||||
|
list.value?.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!list.value?.data) return
|
if (!list.value?.data) return
|
||||||
setupListActions(list.value.data, {
|
setupListActions(list.value.data, {
|
||||||
|
|||||||
@ -141,10 +141,9 @@
|
|||||||
/>
|
/>
|
||||||
<EditValueModal
|
<EditValueModal
|
||||||
v-model="showEditModal"
|
v-model="showEditModal"
|
||||||
v-model:unselectAll="unselectAllAction"
|
|
||||||
doctype="CRM Lead"
|
doctype="CRM Lead"
|
||||||
:selectedValues="selectedValues"
|
:selectedValues="selectedValues"
|
||||||
@reload="list.reload()"
|
@reload="reload"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -285,6 +284,11 @@ function bulkActions(selections, unselectAll) {
|
|||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
unselectAllAction.value?.()
|
||||||
|
list.value?.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!list.value?.data) return
|
if (!list.value?.data) return
|
||||||
setupListActions(list.value.data, {
|
setupListActions(list.value.data, {
|
||||||
|
|||||||
@ -86,10 +86,9 @@
|
|||||||
/>
|
/>
|
||||||
<EditValueModal
|
<EditValueModal
|
||||||
v-model="showEditModal"
|
v-model="showEditModal"
|
||||||
v-model:unselectAll="unselectAllAction"
|
|
||||||
doctype="CRM Organization"
|
doctype="CRM Organization"
|
||||||
:selectedValues="selectedValues"
|
:selectedValues="selectedValues"
|
||||||
@reload="list.reload()"
|
@reload="reload"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -210,6 +209,11 @@ function bulkActions(selections, unselectAll) {
|
|||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
unselectAllAction.value?.()
|
||||||
|
list.value?.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!list.value?.data) return
|
if (!list.value?.data) return
|
||||||
setupListActions(list.value.data, {
|
setupListActions(list.value.data, {
|
||||||
|
|||||||
@ -99,10 +99,9 @@
|
|||||||
/>
|
/>
|
||||||
<EditValueModal
|
<EditValueModal
|
||||||
v-model="showEditModal"
|
v-model="showEditModal"
|
||||||
v-model:unselectAll="unselectAllAction"
|
|
||||||
doctype="CRM Task"
|
doctype="CRM Task"
|
||||||
:selectedValues="selectedValues"
|
:selectedValues="selectedValues"
|
||||||
@reload="list.reload()"
|
@reload="reload"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -228,6 +227,11 @@ function bulkActions(selections, unselectAll) {
|
|||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reload() {
|
||||||
|
unselectAllAction.value?.()
|
||||||
|
list.value?.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!list.value?.data) return
|
if (!list.value?.data) return
|
||||||
setupListActions(list.value.data, {
|
setupListActions(list.value.data, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user