@rh-support/troubleshoot 1.0.17 → 1.0.19

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":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,sBAAsB,gBAoRrC"}
1
+ {"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,sBAAsB,gBA8RrC"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { LoadingIndicator, ToastNotification } from '@rh-support/components';
10
+ import { LoadingIndicator, ToastNotification, usePrevious } from '@rh-support/components';
11
11
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
12
12
  import { getVersion } from '@rh-support/utils';
13
13
  import debounce from 'lodash/debounce';
@@ -48,6 +48,8 @@ export function CaseOpenshiftClusterId() {
48
48
  const [isClusterIdUpdating, setIsClusterIdUpdating] = useState(false);
49
49
  const [isReasonUpdating, setIsReasonUpdating] = useState(false);
50
50
  const displayName = useRef('');
51
+ const previousLocalOpenshiftClusterIDState = usePrevious(localOpenshiftClusterIDState);
52
+ const previousSelectedReason = usePrevious(selectedReason);
51
53
  const { t } = useTranslation();
52
54
  const clusterStateReset = () => {
53
55
  setSelectedReason('');
@@ -117,6 +119,13 @@ export function CaseOpenshiftClusterId() {
117
119
  }
118
120
  }
119
121
  catch (e) {
122
+ setCaseDetails(caseDispatch, {
123
+ openshiftClusterID,
124
+ noClusterIdReasonExplanation,
125
+ noClusterIdReason,
126
+ });
127
+ setSelectedReason(previousSelectedReason);
128
+ setLocalOpenshiftClusterIDState(previousLocalOpenshiftClusterIDState);
120
129
  if (showToast) {
121
130
  setIsClusterIdUpdating(false);
122
131
  caseUpdateError.showError(e, t(`OpenShift Cluster ID failed to updated`));
@@ -1 +1 @@
1
- {"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AA4BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAYD,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,eA2QrC;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AA4BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAYD,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,eA+QrC;AAED,eAAe,eAAe,CAAC"}
@@ -118,7 +118,10 @@ function ProductNVersion(props) {
118
118
  try {
119
119
  yield getVersionsDetails(caseDispatch, option.value.product);
120
120
  }
121
- catch (e) { }
121
+ catch (e) {
122
+ setSelectedProductLocal(product);
123
+ setSelectedVersionLocal(version);
124
+ }
122
125
  setIsVersionUpdating(false);
123
126
  }
124
127
  });
@@ -150,6 +153,7 @@ function ProductNVersion(props) {
150
153
  }
151
154
  }
152
155
  catch (e) {
156
+ setSelectedProductLocal(product);
153
157
  setSelectedVersionLocal(version);
154
158
  setIsProductUpdating(false);
155
159
  setIsVersionUpdating(false);
@@ -398,7 +398,7 @@ export default {
398
398
  '* All fields are mandatory.': '* すべてのフィールドは必須です。',
399
399
  Private: '非公開',
400
400
  'Action plan': 'アクションプラン',
401
- 'Alternate case ID': '代替ケース ID が正常に更新されました',
401
+ 'Alternate case ID': '代替ケースID',
402
402
  'Assigned to': '担当者',
403
403
  'Bookmarked searches': 'ブックマークされた検索結果',
404
404
  'Case type': 'ケースタイプ',
@@ -950,6 +950,10 @@ div.defaultViewCheckbox {
950
950
  grid-gap: 0px;
951
951
  }
952
952
 
953
+ div.defaultViewCheckbox label.pf-c-check__label {
954
+ line-height: 1rem;
955
+ }
956
+
953
957
  p.pref-case-popover-text {
954
958
  font-size: 16px;
955
959
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
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": "30ff95d969e84721b15571f7dd99a617db8956f8"
145
+ "gitHead": "be6f046487e4200cfa92a657336e9ac0526103d6"
146
146
  }