@rh-support/cases 2.1.19 → 2.1.20-beta.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.
|
@@ -90,7 +90,7 @@ export function ExportCaseListCSV(props) {
|
|
|
90
90
|
ToastNotification.addDangerMessage(t('Could not export CSV'));
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const partnerSearch = loggedInUserRights.data.
|
|
93
|
+
const partnerSearch = loggedInUserRights.data.isPartner();
|
|
94
94
|
// CSV For Normal Users
|
|
95
95
|
const onExportCSVClick = () => __awaiter(this, void 0, void 0, function* () {
|
|
96
96
|
try {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IPfeCollapse } from '@rh-support/types/pfe/pfe-collapse';
|
|
2
1
|
import { RouteComponentProps } from 'react-router-dom';
|
|
3
2
|
export interface ICasesRouteURLParams {
|
|
4
3
|
}
|
|
@@ -19,10 +18,6 @@ declare global {
|
|
|
19
18
|
hydrajs: string;
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
namespace JSX {
|
|
23
|
-
interface IntrinsicElements extends IPfeCollapse {
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
21
|
interface Document {
|
|
27
22
|
documentMode: any;
|
|
28
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,mBAAmB,EAAU,MAAM,kBAAkB,CAAC;AAMhF,MAAM,WAAW,oBAAoB;CAAG;AACxC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,OAAA,KAAK,GAAG,KAAK,GAAG,CAAC;QAC9E,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,eAAe,EAAE,GAAG,CAAC;QACrB,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;CACJ;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,eAiBlC"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { CustomElements, requireCustomElement } from '@rh-support/utils';
|
|
2
1
|
import React, { useEffect } from 'react';
|
|
3
2
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
|
4
3
|
import RouteUtils from '../utils/routeUtils';
|
|
5
4
|
import { CaseList } from './case-list/CaseList';
|
|
6
5
|
import { PartnerEscalation } from './escalations/PartnerEscalation';
|
|
7
|
-
requireCustomElement([
|
|
8
|
-
{
|
|
9
|
-
element: CustomElements.pfeCollapse,
|
|
10
|
-
requireCb: () => require('@patternfly/pfe-collapse'),
|
|
11
|
-
},
|
|
12
|
-
]);
|
|
13
6
|
export function Cases(props) {
|
|
14
7
|
RouteUtils.casesBasePath = props.basePath || '';
|
|
15
8
|
// Loading app metadata
|
|
@@ -44,7 +44,7 @@ export function getCaseList(filterState, loggedInUser, loggedInUserAccount, abor
|
|
|
44
44
|
let showErrorMessage = false;
|
|
45
45
|
let caseListResponse;
|
|
46
46
|
const solrFilter = createSolrQueryFromFilterState(filterState, loggedInUser);
|
|
47
|
-
const partnerSearch = loggedInUser.
|
|
47
|
+
const partnerSearch = loggedInUser.isPartner();
|
|
48
48
|
//sfdc returns wrong result, for now only call sfdc when we have no filter applied
|
|
49
49
|
const isSfdcSearchRequired = isNoFilterApplied(filterState) &&
|
|
50
50
|
!filterState.filterQueryInfo.queryString &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.20-beta.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@cee-eng/hydrajs": "4.16.21",
|
|
30
30
|
"@patternfly/patternfly": "4.196.7",
|
|
31
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
32
31
|
"@patternfly/react-core": "4.264.0",
|
|
33
32
|
"@patternfly/react-table": "4.111.33",
|
|
34
33
|
"i18next": "^19.0.1",
|
|
@@ -43,14 +42,13 @@
|
|
|
43
42
|
"dependencies": {
|
|
44
43
|
"@cee-eng/hydrajs": "4.16.21",
|
|
45
44
|
"@patternfly/patternfly": "4.196.7",
|
|
46
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
47
45
|
"@patternfly/react-core": "4.264.0",
|
|
48
46
|
"@patternfly/react-table": "4.111.33",
|
|
49
|
-
"@rh-support/components": "2.1.
|
|
50
|
-
"@rh-support/react-context": "2.1.
|
|
47
|
+
"@rh-support/components": "2.1.19-beta.11",
|
|
48
|
+
"@rh-support/react-context": "2.1.20-beta.11",
|
|
51
49
|
"@rh-support/types": "2.0.2",
|
|
52
|
-
"@rh-support/user-permissions": "2.1.
|
|
53
|
-
"@rh-support/utils": "2.1.
|
|
50
|
+
"@rh-support/user-permissions": "2.1.13-beta.11",
|
|
51
|
+
"@rh-support/utils": "2.1.10-beta.11",
|
|
54
52
|
"i18next": "^19.0.1",
|
|
55
53
|
"localforage": "^1.10.0",
|
|
56
54
|
"lodash": "^4.17.21",
|
|
@@ -93,5 +91,5 @@
|
|
|
93
91
|
"defaults and supports es6-module",
|
|
94
92
|
"maintained node versions"
|
|
95
93
|
],
|
|
96
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "8e73de8237d47996bd99c8e61d3e06a5f8c5f40c"
|
|
97
95
|
}
|