@rh-support/troubleshoot 0.2.94 → 0.2.95
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseAlternateId.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseAlternateId.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAOD,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseAlternateId.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseAlternateId.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAOD,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,eA4HrC;kBA5HQ,eAAe;;;AA+HxB,eAAe,eAAe,CAAC"}
|
|
@@ -43,11 +43,11 @@ function CaseAlternateId(props) {
|
|
|
43
43
|
}
|
|
44
44
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
45
|
}, [alternateId]);
|
|
46
|
-
const
|
|
46
|
+
const onAlternateIdChange = (e) => {
|
|
47
47
|
if (canEditCase.alert())
|
|
48
48
|
return;
|
|
49
49
|
setAlternateIdState(e.target.value);
|
|
50
|
-
!caseNumber && setCaseDetails(caseDispatch, { alternateId: e.target.value });
|
|
50
|
+
!caseNumber && setCaseDetails(caseDispatch, { alternateId: e.target.value.trim() });
|
|
51
51
|
};
|
|
52
52
|
const updateAlternateId = () => __awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
try {
|
|
@@ -87,7 +87,7 @@ function CaseAlternateId(props) {
|
|
|
87
87
|
alternateIdState === alternateId ||
|
|
88
88
|
isUpdating ||
|
|
89
89
|
(alternateIdState === null || alternateIdState === void 0 ? void 0 : alternateIdState.length) > ALTERNATE_CASE_ID_LIMIT, loadingIndicator: isUpdating ? React.createElement(LoadingIndicator, { isInline: true }) : null },
|
|
90
|
-
React.createElement("input", { value: alternateIdState, type: "text", className: "form-control", id: "case-details-alternate-id", placeholder: t(`Enter your case tracking number or internal incident ID`), onChange:
|
|
90
|
+
React.createElement("input", { value: alternateIdState, type: "text", className: "form-control", id: "case-details-alternate-id", placeholder: t(`Enter your case tracking number or internal incident ID`), onChange: onAlternateIdChange, disabled: isUpdating, "data-tracking-id": "case-details-alternate-id" })),
|
|
91
91
|
(alternateIdState === null || alternateIdState === void 0 ? void 0 : alternateIdState.length) > ALTERNATE_CASE_ID_LIMIT && (React.createElement("div", { className: "pull-top" },
|
|
92
92
|
React.createElement("p", { className: "form-instructions form-invalid" },
|
|
93
93
|
React.createElement(Trans, null, maxLengthErrorMessage))))));
|
|
@@ -2,7 +2,7 @@ import { pcm } from '@cee-eng/hydrajs';
|
|
|
2
2
|
import { Button, ButtonVariant, Label, Progress, ProgressMeasureLocation } from '@patternfly/react-core';
|
|
3
3
|
import { CircularProgressbar } from '@rh-support/components';
|
|
4
4
|
import { humanizeSize } from '@rh-support/utils';
|
|
5
|
-
import { capitalize } from 'lodash';
|
|
5
|
+
import { capitalize, isEmpty } from 'lodash';
|
|
6
6
|
import map from 'lodash/map';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -26,10 +26,11 @@ const analysisStepMap = {
|
|
|
26
26
|
export default function FileLister(props) {
|
|
27
27
|
const { t } = useTranslation();
|
|
28
28
|
const onDescriptionChange = (localFile, indexToEdit) => (event) => {
|
|
29
|
+
var _a;
|
|
29
30
|
const editedLocalFile = Object.assign({}, localFile);
|
|
30
|
-
editedLocalFile.description = event.target.value;
|
|
31
|
+
editedLocalFile.description = isEmpty((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim()) ? '' : event.target.value;
|
|
31
32
|
props.onFileEdit &&
|
|
32
|
-
props.onFileEdit(editedLocalFile, indexToEdit, { description: editedLocalFile.description });
|
|
33
|
+
props.onFileEdit(editedLocalFile, indexToEdit, { description: editedLocalFile.description.trim() });
|
|
33
34
|
};
|
|
34
35
|
const onRetry = (index) => () => {
|
|
35
36
|
props.onRetry && props.onRetry(index);
|
package/lib/esm/css/app.css
CHANGED
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
|
|
337
337
|
.wizard-aside-content header button .fa {
|
|
338
338
|
font-size: 20px;
|
|
339
|
-
}
|
|
339
|
+
}
|
|
340
340
|
|
|
341
341
|
@font-face {
|
|
342
342
|
font-family: 'Red Hat Text';
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
font-weight: 900;
|
|
417
417
|
font-style: 'normal';
|
|
418
418
|
text-rendering: optimizeLegibility;
|
|
419
|
-
}
|
|
419
|
+
}*/
|
|
420
420
|
|
|
421
421
|
/* Open Case section */
|
|
422
422
|
.open-case-product-wrapper {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.95",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"not ie <= 11",
|
|
144
144
|
"not op_mini all"
|
|
145
145
|
],
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "c64dcee1e1d2cdc0251d656b1ae85d146bfe0d66"
|
|
147
147
|
}
|