integrations changes
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
"redirectUri": "Redirect URI"
|
||||
},
|
||||
"messages": {
|
||||
"selectIntegration": "Select an integration in menu."
|
||||
"selectIntegration": "Select an integration from menu.",
|
||||
"noIntegrations": "No Integrations is available."
|
||||
},
|
||||
"help": {
|
||||
"Google": "<p><b>Obtain OAuth 2.0 credentials from the Google Developers Console.</b></p><p>Visit <a href=\"https://console.developers.google.com/project\">Google Developers Console</a> to obtain OAuth 2.0 credentials such as a Client ID and Client Secret that are known to both Google and EspoCRM application.</p>"
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"fields": {
|
||||
"clientId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"required": true
|
||||
},
|
||||
"clientSecret": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"endpoint": "https://accounts.google.com/o/oauth2/auth",
|
||||
"tokenEndpoint": "https://accounts.google.com/o/oauth2/token",
|
||||
"scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/calendar"
|
||||
},
|
||||
"allowUserAccounts": true,
|
||||
"authMethod": "OAuth2",
|
||||
"clientClassName": "\\Espo\\Core\\ExternalAccount\\Clients\\Google"
|
||||
}
|
||||
@@ -78,7 +78,12 @@ Espo.define('Views.Admin.Integrations.Index', 'View', function (Dep) {
|
||||
|
||||
renderDefaultPage: function () {
|
||||
$('#integration-header').html('').hide();
|
||||
$('#integration-content').html(this.translate('selectIntegration', 'messages', 'Integration'));
|
||||
if (this.integrationList.length) {
|
||||
var msg = this.translate('selectIntegration', 'messages', 'Integration');
|
||||
} else {
|
||||
var msg = '<p class="lead">' + this.translate('noIntegrations', 'messages', 'Integration') + '</p>';
|
||||
}
|
||||
$('#integration-content').html(msg);
|
||||
},
|
||||
|
||||
renderHeader: function () {
|
||||
|
||||
Reference in New Issue
Block a user