fix: allow creating lost reason from lost reason modal field
(cherry picked from commit 144470877d943802e3fb3439fdfc6b8c1abb8359)
This commit is contained in:
parent
e4abb0f9de
commit
5f459f58cb
@ -49,6 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import Link from '@/components/Controls/Link.vue'
|
import Link from '@/components/Controls/Link.vue'
|
||||||
|
import { createDocument } from '@/composables/document'
|
||||||
import { Dialog } from 'frappe-ui'
|
import { Dialog } from 'frappe-ui'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
@ -91,9 +92,7 @@ function save() {
|
|||||||
props.deal.save.submit()
|
props.deal.save.submit()
|
||||||
}
|
}
|
||||||
|
|
||||||
function onCreate() {
|
function onCreate(value, close) {
|
||||||
// This function can be used to handle the creation of a new lost reason
|
createDocument('CRM Lost Reason', value, close)
|
||||||
// For now, we just close the modal after creating a new reason
|
|
||||||
show.value = false
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user