@rh-support/troubleshoot 0.2.113 → 0.2.114

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,eA4RhC"}
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,7 +46,7 @@ export function Cep(props) {
46
46
  useEffect(() => {
47
47
  setCepDetailsLocal(cepDetails);
48
48
  }, [cepDetails]);
49
- const clearCepForm = () => {
49
+ const clearCepFormInputs = () => {
50
50
  setCepDetailsLocal(cepDetails);
51
51
  };
52
52
  const onCepChange = (e) => __awaiter(this, void 0, void 0, function* () {
@@ -64,10 +64,18 @@ export function Cep(props) {
64
64
  description: t('Are you sure?'),
65
65
  });
66
66
  cepUpdate({ cep: false });
67
- clearCepForm();
67
+ clearCepFormInputs();
68
68
  }
69
69
  else {
70
70
  setCaseDetails(caseDispatch, { cep: false });
71
+ setCaseState(caseDispatch, {
72
+ cepDetails: {
73
+ contactName: '',
74
+ contactInformation: '',
75
+ workingHours: '',
76
+ notes: '',
77
+ },
78
+ });
71
79
  }
72
80
  }
73
81
  });
@@ -163,7 +171,7 @@ export function Cep(props) {
163
171
  React.createElement("div", { className: "form-group" },
164
172
  React.createElement("label", { htmlFor: "cep-notes" },
165
173
  React.createElement(Trans, null, "Notes")),
166
- 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 }),
167
175
  React.createElement("p", { className: "form-instructions" },
168
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.")))))));
169
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.113",
3
+ "version": "0.2.114",
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": "6bbb463984ea647a4be39bc7dd259dc3d8ecbf8d"
146
+ "gitHead": "649e69fa91b51572e9bad9448655f03018c4bfd0"
147
147
  }