@rh-support/troubleshoot 2.2.33 → 2.2.35
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/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +7 -2
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +5 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAUpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAUpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,gBAuGvD,CAAC"}
|
|
@@ -31,10 +31,10 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
31
31
|
const productOptions = props.products.map((p, id) => createOption(p, id, 'product'));
|
|
32
32
|
const allProductsTroubleshootOptions = allProducts.data.productsResult.map((p, id) => createOption(p, id, 'product'));
|
|
33
33
|
return [
|
|
34
|
-
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts" }),
|
|
34
|
+
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '' }),
|
|
35
35
|
...topProductOptions,
|
|
36
36
|
React.createElement(Divider, { key: "all-product-divider" }),
|
|
37
|
-
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts" }),
|
|
37
|
+
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '' }),
|
|
38
38
|
...(props.isCaseCreate ? productOptions : allProductsTroubleshootOptions),
|
|
39
39
|
];
|
|
40
40
|
};
|
|
@@ -53,6 +53,11 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
const onSelect = (event, selection) => {
|
|
56
|
+
if (isEqual(selection, product)) {
|
|
57
|
+
props.onProductChange(''); // To unselect a product when user clicks on the same selected product
|
|
58
|
+
setIsOpen(false);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
56
61
|
props.onProductChange(selection);
|
|
57
62
|
setIsOpen(false);
|
|
58
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAWA,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAWA,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBAmItD,CAAC"}
|
|
@@ -82,6 +82,11 @@ export const NewProductVersionSelector = (props) => {
|
|
|
82
82
|
setIsOpen(isOpen);
|
|
83
83
|
};
|
|
84
84
|
const onSelect = (event, selection) => {
|
|
85
|
+
if (isEqual(selection, version)) {
|
|
86
|
+
props.onVersionChange(''); // To unselect a version when user clicks on the same selected product version
|
|
87
|
+
setIsOpen(false);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
85
90
|
props.onVersionChange(selection);
|
|
86
91
|
setIsOpen(false);
|
|
87
92
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.35",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"@patternfly/react-core": "4.264.0",
|
|
67
67
|
"@progress/kendo-drawing": "^1.6.0",
|
|
68
68
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
69
|
-
"@rh-support/components": "2.1.
|
|
70
|
-
"@rh-support/react-context": "2.1.
|
|
69
|
+
"@rh-support/components": "2.1.20",
|
|
70
|
+
"@rh-support/react-context": "2.1.21",
|
|
71
71
|
"@rh-support/types": "2.0.2",
|
|
72
|
-
"@rh-support/user-permissions": "2.1.
|
|
72
|
+
"@rh-support/user-permissions": "2.1.14",
|
|
73
73
|
"@rh-support/utils": "2.1.10",
|
|
74
74
|
"@types/react-redux": "^7.1.12",
|
|
75
75
|
"@types/redux": "^3.6.0",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "ed21f3ba46cbc949f50222c31acdf99dc7acaf99"
|
|
137
137
|
}
|