3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ export const styles = {
11
11
paddingBottom : global_spacer_md . value ,
12
12
paddingTop : global_spacer_md . value ,
13
13
} ,
14
+ platformCosts : {
15
+ marginTop : '6px' ,
16
+ } ,
14
17
} as { [ className : string ] : React . CSSProperties } ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { ExportIcon } from '@patternfly/react-icons/dist/esm/icons/export-icon';
3
3
import { intl } from 'components/i18n' ;
4
4
import messages from 'locales/messages' ;
5
5
import React from 'react' ;
6
+ import { styles } from 'routes/components/dataToolbar/dataToolbar.styles' ;
6
7
import { DropdownWrapper } from 'routes/components/dropdownWrapper' ;
7
8
8
9
// Column management
@@ -64,7 +65,10 @@ export const getPlatformCosts = ({
64
65
onPlatformCostsChanged ?: ( checked : boolean ) => void ;
65
66
} ) => {
66
67
return (
67
- < ToolbarItem visibility = { { default : 'hidden' , '2xl' : 'visible' , xl : 'visible' , lg : 'hidden' } } >
68
+ < ToolbarItem
69
+ visibility = { { default : 'hidden' , '2xl' : 'visible' , xl : 'visible' , lg : 'hidden' } }
70
+ style = { styles . platformCosts }
71
+ >
68
72
< Switch
69
73
id = "platform-costs"
70
74
label = { intl . formatMessage ( messages . sumPlatformCosts ) }
Original file line number Diff line number Diff line change @@ -226,14 +226,11 @@ class DetailsTableBase extends React.Component<DetailsTableProps, DetailsTableSt
226
226
( ( item . cost . platformDistributed && item . cost . platformDistributed . value > 0 ) ||
227
227
( item . cost . workerUnallocatedDistributed && item . cost . workerUnallocatedDistributed . value > 0 ) ) ;
228
228
const desc = item . id && item . id !== item . label ? < div style = { styles . infoDescription } > { item . id } </ div > : null ;
229
- const isDisabled =
230
- label === `${ noPrefix } ${ groupBy } ` ||
231
- label === `${ noPrefix } ${ groupByTagKey } ` ||
232
- isUnallocatedProject ||
233
- isUnattributedCosts ;
229
+ const isDisabled = label === `${ noPrefix } ${ groupBy } ` || label === `${ noPrefix } ${ groupByTagKey } ` ;
230
+ const isLinkDisabled = isDisabled || isUnallocatedProject || isUnattributedCosts ;
234
231
const actions = this . getActions ( item , isDisabled ) ;
235
232
236
- const name = isDisabled ? (
233
+ const name = isLinkDisabled ? (
237
234
( label as any )
238
235
) : (
239
236
< Link
0 commit comments