1
0
forked from test/crm

chore: added open in portal link in lead/deal desk page

This commit is contained in:
Shariq Ansari 2024-04-29 23:35:02 +05:30
parent 31d535d7c9
commit 88cc4f4721
3 changed files with 11 additions and 11 deletions

View File

@ -1,8 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Deal", {
// refresh(frm) {
// },
// });
frappe.ui.form.on("CRM Deal", {
refresh(frm) {
frm.add_web_link(`/crm/deals/${frm.doc.name}`, __("Open in Portal"));
},
});

View File

@ -1,8 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Lead", {
// refresh(frm) {
// },
// });
frappe.ui.form.on("CRM Lead", {
refresh(frm) {
frm.add_web_link(`/crm/leads/${frm.doc.name}`, __("Open in Portal"));
},
});

View File

@ -17,7 +17,7 @@
<Switch v-model="chooseExistingContact" />
</div>
</div>
<Fields class="border-t" :sections="sections" :data="deal" />
<Fields class="border-t pt-4" :sections="sections" :data="deal" />
<ErrorMessage class="mt-4" v-if="error" :message="__(error)" />
</template>
<template #actions>