diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.js b/crm/fcrm/doctype/crm_deal/crm_deal.js index 1b305ae0..944ac6d4 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.js +++ b/crm/fcrm/doctype/crm_deal/crm_deal.js @@ -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")); + }, +}); diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.js b/crm/fcrm/doctype/crm_lead/crm_lead.js index 0b354d77..0a9d57e1 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.js +++ b/crm/fcrm/doctype/crm_lead/crm_lead.js @@ -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")); + }, +}); diff --git a/frontend/src/components/Layouts/AppSidebar.vue b/frontend/src/components/Layouts/AppSidebar.vue index cf5a240a..94059457 100644 --- a/frontend/src/components/Layouts/AppSidebar.vue +++ b/frontend/src/components/Layouts/AppSidebar.vue @@ -10,7 +10,7 @@
- + -
- -
{{ item.timeAgo }}
-
-
-
- -
-
- -
+
diff --git a/frontend/src/components/ListViews/ContactsListView.vue b/frontend/src/components/ListViews/ContactsListView.vue index 82cd2a47..4e5d33f5 100644 --- a/frontend/src/components/ListViews/ContactsListView.vue +++ b/frontend/src/components/ListViews/ContactsListView.vue @@ -23,10 +23,7 @@ v-slot="{ idx, column, item }" :row="row" > - + -
- -
{{ item.timeAgo }}
-
-
-
- -
+
diff --git a/frontend/src/components/ListViews/DealsListView.vue b/frontend/src/components/ListViews/DealsListView.vue index 7660a29e..73d421ec 100644 --- a/frontend/src/components/ListViews/DealsListView.vue +++ b/frontend/src/components/ListViews/DealsListView.vue @@ -20,18 +20,16 @@ v-slot="{ idx, column, item }" :row="row" > -
- +
+
- + -
- -
{{ item.timeAgo }}
-
-
-
- -
-
- -
+
diff --git a/frontend/src/components/ListViews/EmailTemplatesListView.vue b/frontend/src/components/ListViews/EmailTemplatesListView.vue index 4a5c4f10..c965d37b 100644 --- a/frontend/src/components/ListViews/EmailTemplatesListView.vue +++ b/frontend/src/components/ListViews/EmailTemplatesListView.vue @@ -19,37 +19,51 @@ v-slot="{ idx, column, item }" :row="row" > - + -
- -
{{ item.timeAgo }}
-
-
-
- -
-
- -
+
diff --git a/frontend/src/components/ListViews/LeadsListView.vue b/frontend/src/components/ListViews/LeadsListView.vue index bf7c83ad..229e50ae 100644 --- a/frontend/src/components/ListViews/LeadsListView.vue +++ b/frontend/src/components/ListViews/LeadsListView.vue @@ -20,18 +20,16 @@ v-slot="{ idx, column, item }" :row="row" > -
- +
+
- + -
- -
{{ item.timeAgo }}
-
-
-
- -
-
- -
+
@@ -213,7 +228,9 @@ function editValues(selections, unselectAll) { function deleteValues(selections, unselectAll) { $dialog({ title: __('Delete'), - message: __('Are you sure you want to delete {0} item(s)?', [selections.size]), + message: __('Are you sure you want to delete {0} item(s)?', [ + selections.size, + ]), variant: 'danger', actions: [ { diff --git a/frontend/src/components/ListViews/OrganizationsListView.vue b/frontend/src/components/ListViews/OrganizationsListView.vue index cfc3c704..2e23e05e 100644 --- a/frontend/src/components/ListViews/OrganizationsListView.vue +++ b/frontend/src/components/ListViews/OrganizationsListView.vue @@ -22,10 +22,7 @@ v-slot="{ idx, column, item }" :row="row" > - + -
- -
{{ item.timeAgo }}
-
-
-
- -
+
diff --git a/frontend/src/components/ListViews/TasksListView.vue b/frontend/src/components/ListViews/TasksListView.vue index b6e1d80c..3152c9f2 100644 --- a/frontend/src/components/ListViews/TasksListView.vue +++ b/frontend/src/components/ListViews/TasksListView.vue @@ -29,11 +29,7 @@
- + -
- -
{{ item.timeAgo }}
-
-
-
- -
+
@@ -177,7 +187,9 @@ function editValues(selections, unselectAll) { function deleteValues(selections, unselectAll) { $dialog({ title: __('Delete'), - message: __('Are you sure you want to delete {0} item(s)?'), + message: __('Are you sure you want to delete {0} item(s)?', [ + selections.size, + ]), variant: 'danger', actions: [ { diff --git a/frontend/src/components/Modals/DealModal.vue b/frontend/src/components/Modals/DealModal.vue index fbfcf1b1..d82a4b95 100644 --- a/frontend/src/components/Modals/DealModal.vue +++ b/frontend/src/components/Modals/DealModal.vue @@ -17,7 +17,7 @@
- +