diff --git a/frappe/integrations/doctype/google_contacts/google_contacts.js b/frappe/integrations/doctype/google_contacts/google_contacts.js
index 911c16ea91..575e1669a6 100644
--- a/frappe/integrations/doctype/google_contacts/google_contacts.js
+++ b/frappe/integrations/doctype/google_contacts/google_contacts.js
@@ -3,7 +3,9 @@
frappe.ui.form.on('Google Contacts', {
refresh: function(frm) {
- frm.set_value("user", frappe.session.user);
+ if (!frm.doc.enable) {
+ frm.dashboard.set_headline(__("To use Google Drive, enable Google Settings."));
+ }
frappe.realtime.on('import_google_contacts', (data) => {
if (data.progress) {
diff --git a/frappe/integrations/doctype/google_contacts/google_contacts.json b/frappe/integrations/doctype/google_contacts/google_contacts.json
index 9bd14d722f..42fb9e68c8 100644
--- a/frappe/integrations/doctype/google_contacts/google_contacts.json
+++ b/frappe/integrations/doctype/google_contacts/google_contacts.json
@@ -1,5 +1,5 @@
{
- "autoname": "format:GC-{user}",
+ "autoname": "format:GC-{email_id}",
"creation": "2019-06-14 00:09:39.441961",
"doctype": "DocType",
"engine": "InnoDB",
@@ -9,7 +9,6 @@
"email_id",
"authorize_google_contacts_access",
"cb_00",
- "user",
"last_sync_on",
"authorization_code",
"refresh_token"
@@ -21,13 +20,6 @@
"fieldtype": "Check",
"label": "Enable"
},
- {
- "fieldname": "user",
- "fieldtype": "Link",
- "label": "User",
- "options": "User",
- "read_only": 1
- },
{
"fieldname": "authorization_code",
"fieldtype": "Password",
@@ -72,7 +64,7 @@
"label": "Authorize Google Contacts Access"
}
],
- "modified": "2019-06-19 15:26:24.494101",
+ "modified": "2019-08-23 13:50:52.789503",
"modified_by": "Administrator",
"module": "Integrations",
"name": "Google Contacts",
diff --git a/frappe/integrations/doctype/google_settings/google_settings.js b/frappe/integrations/doctype/google_settings/google_settings.js
index 0d2ede9b9b..bdc0453c0a 100644
--- a/frappe/integrations/doctype/google_settings/google_settings.js
+++ b/frappe/integrations/doctype/google_settings/google_settings.js
@@ -2,6 +2,7 @@
// For license information, please see license.txt
frappe.ui.form.on('Google Settings', {
- // refresh: function(frm) {
- // }
-});
+ refresh: function(frm) {
+ frm.dashboard.set_headline(__("For more information, Click here."));
+ }
+});
\ No newline at end of file