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 // Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt // For license information, please see license.txt
// frappe.ui.form.on("CRM Deal", { frappe.ui.form.on("CRM Deal", {
// refresh(frm) { 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 // Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt // For license information, please see license.txt
// frappe.ui.form.on("CRM Lead", { frappe.ui.form.on("CRM Lead", {
// refresh(frm) { refresh(frm) {
frm.add_web_link(`/crm/leads/${frm.doc.name}`, __("Open in Portal"));
// }, },
// }); });

View File

@ -17,7 +17,7 @@
<Switch v-model="chooseExistingContact" /> <Switch v-model="chooseExistingContact" />
</div> </div>
</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)" /> <ErrorMessage class="mt-4" v-if="error" :message="__(error)" />
</template> </template>
<template #actions> <template #actions>