fix: ux fixes for google integrations
This commit is contained in:
parent
5c7d1fd1ae
commit
a8ff36ec0b
3 changed files with 9 additions and 14 deletions
|
|
@ -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 <a href='#Form/Google Settings'>Google Settings</a>."));
|
||||
}
|
||||
|
||||
frappe.realtime.on('import_google_contacts', (data) => {
|
||||
if (data.progress) {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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, <a href='https://erpnext.com/docs/user/manual/en/erpnext_integration/google_settings'>Click here</a>."));
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue