@lingk/sync 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -329,6 +329,8 @@ module.exports =
329
329
 
330
330
  var CloudSQLTypes = [{ name: 'Postgres' }, { name: 'MySQL' }];
331
331
 
332
+ var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'json';
333
+
332
334
  return _react2.default.createElement(
333
335
  'div',
334
336
  null,
@@ -384,7 +386,9 @@ module.exports =
384
386
  onClick: function onClick() {
385
387
  return onCheck(creds);
386
388
  },
387
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
389
+ style: { marginLeft: onlyJson ? 0 : 8, marginTop: onlyJson ? 8 : 0,
390
+ marginBottom: 2, height: 30, lineHeight: '10px'
391
+ },
388
392
  disabled: credsDisabledCheck },
389
393
  'Test Connection'
390
394
  )