@rh-support/troubleshoot 1.0.13 → 1.0.14

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":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AA0BA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAoS7C"}
1
+ {"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AA2BA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAoS7C"}
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { Button, Checkbox, Popover, PopoverPosition, Switch, Tooltip } from '@patternfly/react-core';
11
11
  import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/js/icons/angle-double-left-icon';
12
12
  import AngleDoubleRightIcon from '@patternfly/react-icons/dist/js/icons/angle-double-right-icon';
13
+ import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
13
14
  import ListIcon from '@patternfly/react-icons/dist/js/icons/list-icon';
14
15
  import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
15
16
  import TrendUpIcon from '@patternfly/react-icons/dist/js/icons/trend-up-icon';
@@ -179,7 +180,7 @@ export function CaseDetailsAside(props) {
179
180
  preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'),
180
181
  React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
181
182
  React.createElement(Trans, null, renderCasePrefPopoverText())), showClose: false },
182
- React.createElement("i", { "aria-label": "Preferred-default-case-view-info-icon", className: "fa fa-question-circle" }))),
183
+ React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-u-ml-sm" }))),
183
184
  React.createElement(Switch, { title: preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'), "data-tracking-id": preferredOrDefaultCaseView()
184
185
  ? 'disable-view-as-customer'
185
186
  : 'enable-view-as-customer', "aria-label": preferredOrDefaultCaseView()
@@ -170,32 +170,32 @@ export default function UpdateSeverityModal(props) {
170
170
  commentBody: severityUpdateFailedComment === null || severityUpdateFailedComment === void 0 ? void 0 : severityUpdateFailedComment.trim(),
171
171
  contentType: 'markdown',
172
172
  });
173
+ onClose();
174
+ ToastNotification.addDangerMessage(t(`Failed to update case status. Please try again`));
173
175
  yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
174
176
  status: 'Waiting on Customer',
175
177
  severity: currentSeverity,
176
178
  });
177
- onClose();
178
- ToastNotification.addDangerMessage(t(`Failed to update case status. Please try again`));
179
179
  setCaseDetails(caseDispatch, { status: 'Waiting on Customer' });
180
180
  }
181
181
  }
182
182
  catch (e) {
183
+ onClose();
184
+ ToastNotification.addDangerMessage(t(`Couldn't post severity update comment. Please try again`));
183
185
  yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
184
186
  severity: caseDetails.caseSeverity,
185
187
  });
186
- onClose();
187
- ToastNotification.addDangerMessage(t(`Couldn't post severity update comment. Please try again`));
188
188
  setDescriptionValue(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim());
189
189
  reUpdateSeverity(caseDetails.caseSeverity);
190
190
  setSeverityUpdating(caseOverviewDispatch, false);
191
191
  }
192
192
  }
193
193
  catch (e) {
194
+ onClose();
195
+ ToastNotification.addDangerMessage(t('Severity failed to update'));
194
196
  yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
195
197
  severity: caseDetails.caseSeverity,
196
198
  });
197
- onClose();
198
- ToastNotification.addDangerMessage(t('Severity failed to update'));
199
199
  reUpdateSeverity(caseDetails.caseSeverity);
200
200
  setDescriptionValue(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim());
201
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -142,5 +142,5 @@
142
142
  "not ie <= 11",
143
143
  "not op_mini all"
144
144
  ],
145
- "gitHead": "248d82aca4c59a1579f064ad8865561daaf52399"
145
+ "gitHead": "385be1a5087e7a199a974b22442a06f8ef61a06b"
146
146
  }