@rh-support/troubleshoot 0.2.112 → 0.2.115

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":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAuRhC"}
1
+ {"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAyBA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAoShC"}
@@ -46,6 +46,9 @@ export function Cep(props) {
46
46
  useEffect(() => {
47
47
  setCepDetailsLocal(cepDetails);
48
48
  }, [cepDetails]);
49
+ const clearCepFormInputs = () => {
50
+ setCepDetailsLocal(cepDetails);
51
+ };
49
52
  const onCepChange = (e) => __awaiter(this, void 0, void 0, function* () {
50
53
  if (canEditCase.alert())
51
54
  return;
@@ -61,9 +64,18 @@ export function Cep(props) {
61
64
  description: t('Are you sure?'),
62
65
  });
63
66
  cepUpdate({ cep: false });
67
+ clearCepFormInputs();
64
68
  }
65
69
  else {
66
70
  setCaseDetails(caseDispatch, { cep: false });
71
+ setCaseState(caseDispatch, {
72
+ cepDetails: {
73
+ contactName: '',
74
+ contactInformation: '',
75
+ workingHours: '',
76
+ notes: '',
77
+ },
78
+ });
67
79
  }
68
80
  }
69
81
  });
@@ -159,7 +171,7 @@ export function Cep(props) {
159
171
  React.createElement("div", { className: "form-group" },
160
172
  React.createElement("label", { htmlFor: "cep-notes" },
161
173
  React.createElement(Trans, null, "Notes")),
162
- React.createElement(TextAreaResizable, { id: "cep-notes", className: `form-control`, "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notese", value: cepDetailsLocal.notes, onChange: onCepNotesChange, isSpaceAllowed: false, autoResize: true }),
174
+ React.createElement(TextAreaResizable, { id: "cep-notes", className: `form-control`, "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notes", value: cepDetailsLocal.notes, onChange: onCepNotesChange, isSpaceAllowed: false, autoResize: true }),
163
175
  React.createElement("p", { className: "form-instructions" },
164
176
  React.createElement(Trans, null, "Provide any pertinent information that Red Hat Support should be aware of that's not already captured in the issue statement or comments.")))))));
165
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.112",
3
+ "version": "0.2.115",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -74,10 +74,10 @@
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
76
  "@rh-support/api": "0.3.21",
77
- "@rh-support/components": "1.1.68",
78
- "@rh-support/react-context": "0.2.72",
77
+ "@rh-support/components": "1.1.69",
78
+ "@rh-support/react-context": "0.2.73",
79
79
  "@rh-support/types": "0.2.0",
80
- "@rh-support/user-permissions": "0.2.57",
80
+ "@rh-support/user-permissions": "0.2.58",
81
81
  "@rh-support/utils": "0.2.43",
82
82
  "@types/react-redux": "^7.1.12",
83
83
  "@types/redux": "^3.6.0",
@@ -143,5 +143,5 @@
143
143
  "not ie <= 11",
144
144
  "not op_mini all"
145
145
  ],
146
- "gitHead": "73a794e268a7f0b885f92949131a7a2c1b84454b"
146
+ "gitHead": "83213f63a0200c2976231df845612f7ef9d73c3e"
147
147
  }