@plusscommunities/pluss-maintenance-web-a 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
|
@@ -3362,8 +3362,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3362
3362
|
})));
|
|
3363
3363
|
|
|
3364
3364
|
_defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
|
|
3365
|
-
var res
|
|
3366
|
-
|
|
3365
|
+
var res;
|
|
3367
3366
|
return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
|
|
3368
3367
|
while (1) {
|
|
3369
3368
|
switch (_context3.prev = _context3.next) {
|
|
@@ -3393,7 +3392,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3393
3392
|
_context3.t0 = _context3["catch"](0);
|
|
3394
3393
|
|
|
3395
3394
|
// 404 is expected if no sync - don't show error
|
|
3396
|
-
if (
|
|
3395
|
+
if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
|
|
3397
3396
|
console.error('getExternalSync', _context3.t0);
|
|
3398
3397
|
}
|
|
3399
3398
|
|
|
@@ -4497,7 +4496,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4497
4496
|
}
|
|
4498
4497
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4499
4498
|
className: "statusLabel_text"
|
|
4500
|
-
}, isSuccess ? "Synced to ".concat(e.
|
|
4499
|
+
}, 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) : ''))));
|
|
4501
4500
|
}
|
|
4502
4501
|
}, {
|
|
4503
4502
|
key: "renderPriority",
|
|
@@ -4530,10 +4529,10 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4530
4529
|
className: "flex-1"
|
|
4531
4530
|
}, "External Sync")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4532
4531
|
className: "marginTop-16"
|
|
4533
|
-
}, externalSync.
|
|
4532
|
+
}, externalSync.systemType && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4534
4533
|
type: "body",
|
|
4535
4534
|
className: "marginBottom-8"
|
|
4536
|
-
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.
|
|
4535
|
+
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4537
4536
|
type: "body",
|
|
4538
4537
|
className: "marginBottom-8"
|
|
4539
4538
|
}, /*#__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
|
@@ -3319,8 +3319,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3319
3319
|
})));
|
|
3320
3320
|
|
|
3321
3321
|
_defineProperty(_assertThisInitialized(_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
3322
|
-
var res
|
|
3323
|
-
|
|
3322
|
+
var res;
|
|
3324
3323
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
3325
3324
|
while (1) {
|
|
3326
3325
|
switch (_context3.prev = _context3.next) {
|
|
@@ -3350,7 +3349,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
3350
3349
|
_context3.t0 = _context3["catch"](0);
|
|
3351
3350
|
|
|
3352
3351
|
// 404 is expected if no sync - don't show error
|
|
3353
|
-
if (
|
|
3352
|
+
if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
|
|
3354
3353
|
console.error('getExternalSync', _context3.t0);
|
|
3355
3354
|
}
|
|
3356
3355
|
|
|
@@ -4454,7 +4453,7 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4454
4453
|
}
|
|
4455
4454
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4456
4455
|
className: "statusLabel_text"
|
|
4457
|
-
}, isSuccess ? "Synced to ".concat(e.
|
|
4456
|
+
}, 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) : ''))));
|
|
4458
4457
|
}
|
|
4459
4458
|
}, {
|
|
4460
4459
|
key: "renderPriority",
|
|
@@ -4487,10 +4486,10 @@ var Job = /*#__PURE__*/function (_Component) {
|
|
|
4487
4486
|
className: "flex-1"
|
|
4488
4487
|
}, "External Sync")), /*#__PURE__*/React.createElement("div", {
|
|
4489
4488
|
className: "marginTop-16"
|
|
4490
|
-
}, externalSync.
|
|
4489
|
+
}, externalSync.systemType && /*#__PURE__*/React.createElement(Components$3.Text, {
|
|
4491
4490
|
type: "body",
|
|
4492
4491
|
className: "marginBottom-8"
|
|
4493
|
-
}, /*#__PURE__*/React.createElement("strong", null, "System:"), " ", externalSync.
|
|
4492
|
+
}, /*#__PURE__*/React.createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React.createElement(Components$3.Text, {
|
|
4494
4493
|
type: "body",
|
|
4495
4494
|
className: "marginBottom-8"
|
|
4496
4495
|
}, /*#__PURE__*/React.createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React.createElement(Components$3.Text, {
|
package/dist/index.umd.js
CHANGED
|
@@ -3341,8 +3341,7 @@
|
|
|
3341
3341
|
})));
|
|
3342
3342
|
|
|
3343
3343
|
_defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
|
|
3344
|
-
var res
|
|
3345
|
-
|
|
3344
|
+
var res;
|
|
3346
3345
|
return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
|
|
3347
3346
|
while (1) {
|
|
3348
3347
|
switch (_context3.prev = _context3.next) {
|
|
@@ -3372,7 +3371,7 @@
|
|
|
3372
3371
|
_context3.t0 = _context3["catch"](0);
|
|
3373
3372
|
|
|
3374
3373
|
// 404 is expected if no sync - don't show error
|
|
3375
|
-
if (
|
|
3374
|
+
if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
|
|
3376
3375
|
console.error('getExternalSync', _context3.t0);
|
|
3377
3376
|
}
|
|
3378
3377
|
|
|
@@ -4476,7 +4475,7 @@
|
|
|
4476
4475
|
}
|
|
4477
4476
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4478
4477
|
className: "statusLabel_text"
|
|
4479
|
-
}, isSuccess ? "Synced to ".concat(e.
|
|
4478
|
+
}, 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) : ''))));
|
|
4480
4479
|
}
|
|
4481
4480
|
}, {
|
|
4482
4481
|
key: "renderPriority",
|
|
@@ -4509,10 +4508,10 @@
|
|
|
4509
4508
|
className: "flex-1"
|
|
4510
4509
|
}, "External Sync")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4511
4510
|
className: "marginTop-16"
|
|
4512
|
-
}, externalSync.
|
|
4511
|
+
}, externalSync.systemType && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4513
4512
|
type: "body",
|
|
4514
4513
|
className: "marginBottom-8"
|
|
4515
|
-
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.
|
|
4514
|
+
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
|
|
4516
4515
|
type: "body",
|
|
4517
4516
|
className: "marginBottom-8"
|
|
4518
4517
|
}, /*#__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 && (
|