@rh-support/troubleshoot 2.2.10 → 2.2.11
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.
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +7 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +3 -4
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,sBAAsB,gBA8OrC"}
|
|
@@ -17,7 +17,7 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
18
18
|
import React, { useContext, useEffect, useState } from 'react';
|
|
19
19
|
import { Trans, useTranslation } from 'react-i18next';
|
|
20
|
-
import { PHONE_IS_NOT_VALID, PHONE_LINE_CANNOT_BE_EMPTY, PHONE_NO_CHAR_ERROR, } from '../../../../constants/caseDetailsConstants';
|
|
20
|
+
import { PHONE_INSTRUCTION, PHONE_IS_NOT_VALID, PHONE_LINE_CANNOT_BE_EMPTY, PHONE_NO_CHAR_ERROR, } from '../../../../constants/caseDetailsConstants';
|
|
21
21
|
import { useCaseDispatch, useCaseSelector } from '../../../../context/CaseContext';
|
|
22
22
|
import { useCaseUpdateErrorMessage } from '../../../../hooks/useCaseUpdateErrorMessage';
|
|
23
23
|
import { PHONE_LIMIT } from '../../../../reducers/CaseConstNTypes';
|
|
@@ -151,6 +151,12 @@ export function CaseContactPhoneNumber() {
|
|
|
151
151
|
React.createElement(CheckIcon, null)),
|
|
152
152
|
React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' }, disabled: isEmpty(localFullPhoneState) },
|
|
153
153
|
React.createElement(TimesIcon, { color: "#6A6E73" }))),
|
|
154
|
+
!invalid &&
|
|
155
|
+
(localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) < PHONE_LIMIT &&
|
|
156
|
+
!(isPhoneLineEmpty && isSaveClicked) &&
|
|
157
|
+
!(isSaveClicked && isPhoneNumberInvalid) &&
|
|
158
|
+
!isShowOldPhone && (React.createElement("p", { className: "form-instructions" },
|
|
159
|
+
React.createElement(Trans, null, PHONE_INSTRUCTION))),
|
|
154
160
|
invalid && (React.createElement("p", { className: "form-instructions form-invalid" },
|
|
155
161
|
React.createElement(Trans, null, PHONE_NO_CHAR_ERROR))),
|
|
156
162
|
(localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT && (React.createElement("p", { className: "form-instructions form-invalid" }, maxLengthErrorMessage)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,gBA6SjC"}
|
|
@@ -7,7 +7,7 @@ import { getConfigField, getRedhatDotComHost, PCM_CONFIG_FIELD_TYPE, PreviousCas
|
|
|
7
7
|
import find from 'lodash/find';
|
|
8
8
|
import isEmpty from 'lodash/isEmpty';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
|
-
import React, { useContext, useEffect,
|
|
10
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
11
11
|
import { Trans, useTranslation } from 'react-i18next';
|
|
12
12
|
import { Link } from 'react-router-dom';
|
|
13
13
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
@@ -40,7 +40,6 @@ export default function SubmitCase() {
|
|
|
40
40
|
}), isEqual);
|
|
41
41
|
const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
42
42
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
43
|
-
const tooltipRef = useRef();
|
|
44
43
|
const { rulesState } = useContext(RulesStateContext);
|
|
45
44
|
const { clusterRecommendationsState: { clusterRecommendations }, } = useContext(ClusterRecommendationsContext);
|
|
46
45
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
@@ -135,8 +134,8 @@ export default function SubmitCase() {
|
|
|
135
134
|
React.createElement(ActionListItem, null,
|
|
136
135
|
React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
|
|
137
136
|
React.createElement(ActionListItem, null, viewDisabled ? (React.createElement(React.Fragment, null,
|
|
138
|
-
React.createElement(Tooltip, { content: t('File upload in progress.'), "
|
|
139
|
-
|
|
137
|
+
React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
|
|
138
|
+
React.createElement(Button, { className: "pf-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: viewDisabled }, "View case")))) : (React.createElement(Button, { className: "pf-u-ml-md", component: (props) => React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNumber}` })), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
|
|
140
139
|
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNumber, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
141
140
|
React.createElement("div", null,
|
|
142
141
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "e778f728c7da568aef8f31273d3d37cda4a1fa21"
|
|
137
137
|
}
|