1
0
forked from test/crm

fix: reload lead/deal page after saving sidepanel layout

This commit is contained in:
Shariq Ansari 2024-08-14 13:51:18 +05:30
parent b19db5fc8d
commit 43a08efc32
4 changed files with 9 additions and 3 deletions

View File

@ -122,7 +122,6 @@ function saveChanges() {
).then(() => {
loading.value = false
show.value = false
reload()
})
}
</script>

View File

@ -84,6 +84,8 @@ const props = defineProps({
},
})
const emit = defineEmits(['reload'])
const show = defineModel()
const _doctype = ref(props.doctype)
const loading = ref(false)
@ -141,7 +143,7 @@ function saveChanges() {
).then(() => {
loading.value = false
show.value = false
reload()
emit('reload')
})
}
</script>

View File

@ -298,6 +298,7 @@
v-if="showSidePanelModal"
v-model="showSidePanelModal"
doctype="CRM Deal"
@reload="() => fieldsLayout.reload()"
/>
</template>
<script setup>

View File

@ -266,7 +266,11 @@
</div>
</template>
</Dialog>
<SidePanelModal v-if="showSidePanelModal" v-model="showSidePanelModal" />
<SidePanelModal
v-if="showSidePanelModal"
v-model="showSidePanelModal"
@reload="() => fieldsLayout.reload()"
/>
</template>
<script setup>
import Resizer from '@/components/Resizer.vue'