File tree Expand file tree Collapse file tree 7 files changed +26
-19
lines changed
admin/allUsersPage/allUsersGrid/projectsAndRolesColumn/rolesRow
inside/filtersPage/filterGrid/filterName Expand file tree Collapse file tree 7 files changed +26
-19
lines changed Original file line number Diff line number Diff line change 33
33
NODE_OPTIONS : ' --max_old_space_size=2048'
34
34
35
35
run : |
36
- npm --prefix ${{ env.UI_BUILD_REACT }} ci
36
+ npm --prefix ${{ env.UI_BUILD_REACT }} ci --legacy-peer-deps
37
37
npm --prefix ${{ env.UI_BUILD_REACT }} run lint
38
38
npm --prefix ${{ env.UI_BUILD_REACT }} run test:coverage
39
39
npm --prefix ${{ env.UI_BUILD_REACT }} run build
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ To launch the development environment, follow these steps:
10
10
11
11
1 . open console from the project root
12
12
2 . run the command ` cd app `
13
- 3 . run the command ` npm install `
13
+ 3 . run the command ` npm install --legacy-peer-deps `
14
14
4 . to proxy requests to the server, create ` .env ` file in ` app ` folder
15
15
16
16
```
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- /* eslint-disable react/no-unknown-property */
18
-
19
17
import React from 'react' ;
20
18
import PropTypes from 'prop-types' ;
21
19
import classNames from 'classnames/bind' ;
@@ -39,6 +37,8 @@ export const AutocompleteMenu = React.forwardRef(
39
37
{ opened : isOpen && isReadyForSearch ( minLength , inputValue ) } ,
40
38
className ,
41
39
) }
40
+ // placement used by Popper
41
+ /* eslint-disable-next-line react/no-unknown-property */
42
42
placement = { placement }
43
43
style = { style }
44
44
>
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- /* eslint-disable react/no-unknown-property */
18
-
19
17
import React from 'react' ;
20
18
import { ScrollWrapper } from 'components/main/scrollWrapper' ;
21
19
import PropTypes from 'prop-types' ;
@@ -79,6 +77,8 @@ export const AutocompleteMenu = React.forwardRef(
79
77
< ul
80
78
ref = { ref }
81
79
className = { cx ( 'menu' , { opened : isOpen && menuContent } ) }
80
+ // placement used by Popper
81
+ /* eslint-disable-next-line react/no-unknown-property */
82
82
placement = { placement }
83
83
style = { style }
84
84
>
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export class RolesRow extends Component {
164
164
: intl . formatMessage ( messages . unAssignFromProject ) ;
165
165
const Tooltip = ( ) => < TextTooltip tooltipContent = { tooltipMessage } /> ;
166
166
const disable = this . isPersonalProject ( ) ;
167
- const componentClickHandler = ! this . isPersonalProject ( ) ? clickHandler : null ;
167
+ const componentClickHandler = ! disable ? clickHandler : null ;
168
168
const WrappedComponent = ( ) => (
169
169
< IconComponent
170
170
different = { different }
Original file line number Diff line number Diff line change @@ -26,6 +26,23 @@ import styles from './filterName.scss';
26
26
27
27
const cx = classNames . bind ( styles ) ;
28
28
29
+ const NameLink = ( { link, children } ) =>
30
+ link ? (
31
+ < Link className = { cx ( 'name-link' ) } to = { link } >
32
+ { children }
33
+ </ Link >
34
+ ) : (
35
+ children
36
+ ) ;
37
+ NameLink . propTypes = {
38
+ link : PropTypes . string ,
39
+ children : PropTypes . node ,
40
+ } ;
41
+ NameLink . defaultProps = {
42
+ link : '' ,
43
+ children : null ,
44
+ } ;
45
+
29
46
export class FilterName extends Component {
30
47
static propTypes = {
31
48
userFilters : PropTypes . array ,
@@ -82,16 +99,6 @@ export class FilterName extends Component {
82
99
nameLink,
83
100
} = this . props ;
84
101
85
- // eslint-disable-next-line react/prop-types
86
- const NameLink = ( { link, children } ) =>
87
- link ? (
88
- < Link className = { cx ( 'name-link' ) } to = { link } >
89
- { children }
90
- </ Link >
91
- ) : (
92
- children
93
- ) ;
94
-
95
102
return (
96
103
< Fragment >
97
104
< span className = { cx ( 'name-wrapper' ) } >
Original file line number Diff line number Diff line change 8
8
[ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/reportportal/service-ui?sort=semver )] ( https://github.com/reportportal/service-ui/releases/latest )
9
9
[ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/reportportal/service-ui.svg?maxAge=159200 )] ( https://hub.docker.com/r/reportportal/service-ui/ )
10
10
11
- 1 . Install nodejs (minimum required version 12, recommended - 20 )
11
+ 1 . Install nodejs (version 20 is recommended )
12
12
13
13
2 . Open console from the project root
14
14
15
15
3 . Run the command ` cd app `
16
16
17
- 4 . Run the command ` npm install ` or ` npm ci `
17
+ 4 . Run the command ` npm install --legacy-peer-deps ` or ` npm ci --legacy-peer-deps `
18
18
19
19
5 . Create file ` .env ` in ` app ` folder
20
20
You can’t perform that action at this time.
0 commit comments