@rh-support/manage 0.2.100 → 0.3.0
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/ManagePreferences/components/PreferenceSwitch.d.ts +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.js +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +8 -2
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAKA,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAKA,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,eA+B3F"}
|
|
@@ -30,5 +30,5 @@ export function PreferenceSwitch({ onSwitchChange, className, id, label, isCheck
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
return (React.createElement("div", null,
|
|
33
|
-
React.createElement(Switch, { className: className, id: id, label:
|
|
33
|
+
React.createElement(Switch, { className: className, id: id, label: label, isChecked: isCheckedLocal, onChange: onChangeLocal, isDisabled: isSwitchLoading })));
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAeA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA4KhD"}
|
|
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { accounts } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Card, CardBody, CardHeader, SelectOption, Spinner, TextArea } from '@patternfly/react-core';
|
|
11
|
+
import { Card, CardBody, CardHeader, SelectOption, Spinner, TextArea, Tooltip } from '@patternfly/react-core';
|
|
12
|
+
import InfoIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
12
13
|
import { EditorMode, ToastNotification, useFetch } from '@rh-support/components';
|
|
13
14
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
14
15
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -112,6 +113,11 @@ export function PreferencesCaseView(props) {
|
|
|
112
113
|
console.log(error);
|
|
113
114
|
}
|
|
114
115
|
});
|
|
116
|
+
const prefHostnameCopy = 'Red Hat Support cannot currently access hostnames that have been entered on a case. You can share this information at any time to improve your support experience.';
|
|
117
|
+
const hostnameLabelTooltip = (React.createElement(React.Fragment, null,
|
|
118
|
+
React.createElement("label", null, "Share hostnames"),
|
|
119
|
+
React.createElement(Tooltip, { content: prefHostnameCopy, position: "right" },
|
|
120
|
+
React.createElement(InfoIcon, { className: "pf-u-ml-sm" }))));
|
|
115
121
|
return (React.createElement(Card, { className: "preference-card" },
|
|
116
122
|
React.createElement(CardHeader, null,
|
|
117
123
|
React.createElement("h3", null,
|
|
@@ -130,5 +136,5 @@ export function PreferencesCaseView(props) {
|
|
|
130
136
|
canUseHostName && (React.createElement("div", { className: "form-group" },
|
|
131
137
|
React.createElement("label", { htmlFor: "share-hostnames-switch" },
|
|
132
138
|
React.createElement(Trans, null, "Case information")),
|
|
133
|
-
React.createElement(PreferenceSwitch, { className: "switches", id: "share-hostnames-switch", label:
|
|
139
|
+
React.createElement(PreferenceSwitch, { className: "switches", id: "share-hostnames-switch", label: hostnameLabelTooltip, isChecked: isSharingHostNames, onSwitchChange: onShareHostNamesSwitch })))))));
|
|
134
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@rh-support/api": "0.3.25",
|
|
99
99
|
"@rh-support/components": "1.1.80",
|
|
100
100
|
"@rh-support/configs": "0.2.5",
|
|
101
|
-
"@rh-support/react-context": "0.
|
|
101
|
+
"@rh-support/react-context": "0.3.0",
|
|
102
102
|
"@rh-support/types": "0.2.0",
|
|
103
103
|
"@rh-support/user-permissions": "0.2.64",
|
|
104
104
|
"@rh-support/utils": "0.2.47",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"react-i18next": ">=10.11.0",
|
|
112
112
|
"react-router-dom": ">=5.1.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "df9aba7f875d84c08c533f9ae63c4c7b325fe646"
|
|
115
115
|
}
|