@lingk/sync 2.3.3 → 2.3.5
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.
- package/build/credentialSections.js +44 -10
- package/build/credentialSections.js.map +1 -1
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js.map +1 -1
- package/build/main.js +44 -10
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
|
@@ -6763,9 +6763,21 @@ module.exports =
|
|
|
6763
6763
|
var _this = _possibleConstructorReturn(this, (EnvSection.__proto__ || Object.getPrototypeOf(EnvSection)).call(this));
|
|
6764
6764
|
|
|
6765
6765
|
_this.onDefaultConnectionChange = function () {
|
|
6766
|
-
_this.
|
|
6767
|
-
|
|
6768
|
-
|
|
6766
|
+
var defaultConnection = _this.state.defaultConnection;
|
|
6767
|
+
var _this$props = _this.props,
|
|
6768
|
+
config = _this$props.config,
|
|
6769
|
+
multipleConnectors = _this$props.multipleConnectors;
|
|
6770
|
+
|
|
6771
|
+
var providerType = config && config.type;
|
|
6772
|
+
if (defaultConnection && (multipleConnectors.includes(config.label) || multipleConnectors.includes(providerType) || multipleConnectors.includes(config.credentialType))) {
|
|
6773
|
+
_this.setState({
|
|
6774
|
+
warningMessage: config && config.label
|
|
6775
|
+
});
|
|
6776
|
+
} else {
|
|
6777
|
+
_this.setState({
|
|
6778
|
+
defaultConnection: !defaultConnection
|
|
6779
|
+
});
|
|
6780
|
+
}
|
|
6769
6781
|
};
|
|
6770
6782
|
|
|
6771
6783
|
_this.onAPIAccessChange = function () {
|
|
@@ -6775,9 +6787,9 @@ module.exports =
|
|
|
6775
6787
|
};
|
|
6776
6788
|
|
|
6777
6789
|
_this.credKeyPress = function (e) {
|
|
6778
|
-
var _this$
|
|
6779
|
-
checking = _this$
|
|
6780
|
-
check = _this$
|
|
6790
|
+
var _this$props2 = _this.props,
|
|
6791
|
+
checking = _this$props2.checking,
|
|
6792
|
+
check = _this$props2.check;
|
|
6781
6793
|
|
|
6782
6794
|
if (e.key === "Enter" && checking !== true) {
|
|
6783
6795
|
check(_this.state.actualCreds || {});
|
|
@@ -6951,7 +6963,6 @@ module.exports =
|
|
|
6951
6963
|
var formCreds = creds;
|
|
6952
6964
|
return !Object.keys(formCreds).includes(c.split(" ").join(""));
|
|
6953
6965
|
});
|
|
6954
|
-
|
|
6955
6966
|
var AmazonRDSdbs = [{
|
|
6956
6967
|
name: "PostgreSQL",
|
|
6957
6968
|
satisfiesSearch: true,
|
|
@@ -7244,13 +7255,36 @@ module.exports =
|
|
|
7244
7255
|
null,
|
|
7245
7256
|
this.props.children
|
|
7246
7257
|
),
|
|
7247
|
-
_react2.default.createElement(
|
|
7258
|
+
this.state.warningMessage && _react2.default.createElement(
|
|
7259
|
+
"div",
|
|
7260
|
+
{ style: { marginTop: 10, maxWidth: 450 } },
|
|
7261
|
+
_react2.default.createElement(
|
|
7262
|
+
_reactBootstrap.Alert,
|
|
7263
|
+
{ bsStyle: "danger", style: { textAlign: "left" } },
|
|
7264
|
+
_react2.default.createElement(
|
|
7265
|
+
"strong",
|
|
7266
|
+
null,
|
|
7267
|
+
"You can not uncheck this default connection!"
|
|
7268
|
+
),
|
|
7269
|
+
_react2.default.createElement("br", null),
|
|
7270
|
+
"There are multiple connections configured for ",
|
|
7271
|
+
_react2.default.createElement(
|
|
7272
|
+
"strong",
|
|
7273
|
+
null,
|
|
7274
|
+
this.state.warningMessage
|
|
7275
|
+
),
|
|
7276
|
+
" connector in this environment.",
|
|
7277
|
+
_react2.default.createElement("br", null),
|
|
7278
|
+
"Please select different connection as a default connection."
|
|
7279
|
+
)
|
|
7280
|
+
),
|
|
7248
7281
|
config.type != "LocalFile" && _react2.default.createElement(APIAcessHandle, {
|
|
7249
7282
|
APIAccess: this.state.APIAccess,
|
|
7250
7283
|
onChangeHandle: this.onAPIAccessChange,
|
|
7251
7284
|
defaultConnection: this.state.defaultConnection,
|
|
7252
7285
|
onDefaultConnectionChange: this.onDefaultConnectionChange,
|
|
7253
|
-
disableMarkConnection: wizard.disableMarkConnection
|
|
7286
|
+
disableMarkConnection: wizard.disableMarkConnection,
|
|
7287
|
+
misconfiguredConnectors: this.props.misconfiguredConnectors
|
|
7254
7288
|
})
|
|
7255
7289
|
);
|
|
7256
7290
|
}
|
|
@@ -7329,7 +7363,7 @@ module.exports =
|
|
|
7329
7363
|
|
|
7330
7364
|
return _react2.default.createElement(
|
|
7331
7365
|
"div",
|
|
7332
|
-
|
|
7366
|
+
{ style: { marginTop: 10 } },
|
|
7333
7367
|
_react2.default.createElement(
|
|
7334
7368
|
_reactBootstrap.Checkbox,
|
|
7335
7369
|
{
|