@plusscommunities/pluss-maintenance-web-feedback 1.1.28 → 1.1.29
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/dist/index.cjs.js +5 -6
- package/dist/index.esm.js +5 -6
- package/dist/index.umd.js +5 -6
- package/package.json +1 -1
- package/src/screens/Job.js +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -3377,8 +3377,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3377
3377
|
})));
|
|
3378
3378
|
|
|
3379
3379
|
_defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
|
|
3380
|
-
var res
|
|
3381
|
-
|
|
3380
|
+
var res;
|
|
3382
3381
|
return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
|
|
3383
3382
|
while (1) {
|
|
3384
3383
|
switch (_context3.prev = _context3.next) {
|
|
@@ -3408,7 +3407,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3408
3407
|
_context3.t0 = _context3["catch"](0);
|
|
3409
3408
|
|
|
3410
3409
|
// 404 is expected if no sync - don't show error
|
|
3411
|
-
if (
|
|
3410
|
+
if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
|
|
3412
3411
|
console.error('getExternalSync', _context3.t0);
|
|
3413
3412
|
}
|
|
3414
3413
|
|
|
@@ -4512,7 +4511,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4512
4511
|
}
|
|
4513
4512
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4514
4513
|
className: "statusLabel_text"
|
|
4515
|
-
}, isSuccess ? "Synced to ".concat(e.
|
|
4514
|
+
}, isSuccess ? "Synced to ".concat(e.systemType || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to ".concat(e.systemType || 'external system').concat(e.error ? ": ".concat(e.error) : ''))));
|
|
4516
4515
|
}
|
|
4517
4516
|
}, {
|
|
4518
4517
|
key: "renderPriority",
|
|
@@ -4545,10 +4544,10 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4545
4544
|
className: "flex-1"
|
|
4546
4545
|
}, "External Sync")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4547
4546
|
className: "marginTop-16"
|
|
4548
|
-
}, externalSync.
|
|
4547
|
+
}, externalSync.systemType && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4549
4548
|
type: "body",
|
|
4550
4549
|
className: "marginBottom-8"
|
|
4551
|
-
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.
|
|
4550
|
+
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4552
4551
|
type: "body",
|
|
4553
4552
|
className: "marginBottom-8"
|
|
4554
4553
|
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
package/dist/index.esm.js
CHANGED
|
@@ -3334,8 +3334,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3334
3334
|
})));
|
|
3335
3335
|
|
|
3336
3336
|
_defineProperty(_assertThisInitialized(_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
3337
|
-
var res
|
|
3338
|
-
|
|
3337
|
+
var res;
|
|
3339
3338
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
3340
3339
|
while (1) {
|
|
3341
3340
|
switch (_context3.prev = _context3.next) {
|
|
@@ -3365,7 +3364,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3365
3364
|
_context3.t0 = _context3["catch"](0);
|
|
3366
3365
|
|
|
3367
3366
|
// 404 is expected if no sync - don't show error
|
|
3368
|
-
if (
|
|
3367
|
+
if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
|
|
3369
3368
|
console.error('getExternalSync', _context3.t0);
|
|
3370
3369
|
}
|
|
3371
3370
|
|
|
@@ -4469,7 +4468,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4469
4468
|
}
|
|
4470
4469
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4471
4470
|
className: "statusLabel_text"
|
|
4472
|
-
}, isSuccess ? "Synced to ".concat(e.
|
|
4471
|
+
}, isSuccess ? "Synced to ".concat(e.systemType || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to ".concat(e.systemType || 'external system').concat(e.error ? ": ".concat(e.error) : ''))));
|
|
4473
4472
|
}
|
|
4474
4473
|
}, {
|
|
4475
4474
|
key: "renderPriority",
|
|
@@ -4502,10 +4501,10 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4502
4501
|
className: "flex-1"
|
|
4503
4502
|
}, "External Sync")), /*#__PURE__*/React.createElement("div", {
|
|
4504
4503
|
className: "marginTop-16"
|
|
4505
|
-
}, externalSync.
|
|
4504
|
+
}, externalSync.systemType && /*#__PURE__*/React.createElement(Components$3.Text, {
|
|
4506
4505
|
type: "body",
|
|
4507
4506
|
className: "marginBottom-8"
|
|
4508
|
-
}, /*#__PURE__*/React.createElement("strong", null, "System:"), " ", externalSync.
|
|
4507
|
+
}, /*#__PURE__*/React.createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React.createElement(Components$3.Text, {
|
|
4509
4508
|
type: "body",
|
|
4510
4509
|
className: "marginBottom-8"
|
|
4511
4510
|
}, /*#__PURE__*/React.createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React.createElement(Components$3.Text, {
|
package/dist/index.umd.js
CHANGED
|
@@ -3356,8 +3356,7 @@
|
|
|
3356
3356
|
})));
|
|
3357
3357
|
|
|
3358
3358
|
_defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
|
|
3359
|
-
var res
|
|
3360
|
-
|
|
3359
|
+
var res;
|
|
3361
3360
|
return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
|
|
3362
3361
|
while (1) {
|
|
3363
3362
|
switch (_context3.prev = _context3.next) {
|
|
@@ -3387,7 +3386,7 @@
|
|
|
3387
3386
|
_context3.t0 = _context3["catch"](0);
|
|
3388
3387
|
|
|
3389
3388
|
// 404 is expected if no sync - don't show error
|
|
3390
|
-
if (
|
|
3389
|
+
if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
|
|
3391
3390
|
console.error('getExternalSync', _context3.t0);
|
|
3392
3391
|
}
|
|
3393
3392
|
|
|
@@ -4491,7 +4490,7 @@
|
|
|
4491
4490
|
}
|
|
4492
4491
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4493
4492
|
className: "statusLabel_text"
|
|
4494
|
-
}, isSuccess ? "Synced to ".concat(e.
|
|
4493
|
+
}, isSuccess ? "Synced to ".concat(e.systemType || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to ".concat(e.systemType || 'external system').concat(e.error ? ": ".concat(e.error) : ''))));
|
|
4495
4494
|
}
|
|
4496
4495
|
}, {
|
|
4497
4496
|
key: "renderPriority",
|
|
@@ -4524,10 +4523,10 @@
|
|
|
4524
4523
|
className: "flex-1"
|
|
4525
4524
|
}, "External Sync")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4526
4525
|
className: "marginTop-16"
|
|
4527
|
-
}, externalSync.
|
|
4526
|
+
}, externalSync.systemType && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4528
4527
|
type: "body",
|
|
4529
4528
|
className: "marginBottom-8"
|
|
4530
|
-
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.
|
|
4529
|
+
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4531
4530
|
type: "body",
|
|
4532
4531
|
className: "marginBottom-8"
|
|
4533
4532
|
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
package/package.json
CHANGED
package/src/screens/Job.js
CHANGED
|
@@ -79,7 +79,7 @@ class Job extends Component {
|
|
|
79
79
|
this.setState({ externalSync: res.data, loadingExternalSync: false });
|
|
80
80
|
} catch (error) {
|
|
81
81
|
// 404 is expected if no sync - don't show error
|
|
82
|
-
if (error.response
|
|
82
|
+
if (error && error.response && error.response.status !== 404) {
|
|
83
83
|
console.error('getExternalSync', error);
|
|
84
84
|
}
|
|
85
85
|
this.setState({ loadingExternalSync: false });
|
|
@@ -828,8 +828,8 @@ class Job extends Component {
|
|
|
828
828
|
<div className="statusLabel statusLabel-large statusLabel-full" style={{ backgroundColor }}>
|
|
829
829
|
<span className="statusLabel_text">
|
|
830
830
|
{isSuccess
|
|
831
|
-
? `Synced to ${e.
|
|
832
|
-
: `Failed to sync to external system${e.error ? `: ${e.error}` : ''}`}
|
|
831
|
+
? `Synced to ${e.systemType || 'external system'}${e.externalId ? ` (ID: ${e.externalId})` : ''}`
|
|
832
|
+
: `Failed to sync to ${e.systemType || 'external system'}${e.error ? `: ${e.error}` : ''}`}
|
|
833
833
|
</span>
|
|
834
834
|
</div>
|
|
835
835
|
</div>
|
|
@@ -866,9 +866,9 @@ class Job extends Component {
|
|
|
866
866
|
</Components.Text>
|
|
867
867
|
</div>
|
|
868
868
|
<div className="marginTop-16">
|
|
869
|
-
{externalSync.
|
|
869
|
+
{externalSync.systemType && (
|
|
870
870
|
<Components.Text type="body" className="marginBottom-8">
|
|
871
|
-
<strong>System:</strong> {externalSync.
|
|
871
|
+
<strong>System:</strong> {externalSync.systemType}
|
|
872
872
|
</Components.Text>
|
|
873
873
|
)}
|
|
874
874
|
{externalSync.externalId && (
|