webpack/scenes/ContentViews/components/EnvironmentLabels.js in katello-4.4.2.2 vs webpack/scenes/ContentViews/components/EnvironmentLabels.js in katello-4.5.0.rc1

- old
+ new

@@ -1,25 +1,26 @@ import React from 'react'; import { Label } from '@patternfly/react-core'; const EnvironmentLabels = (environments) => { - const { environments: singleEnvironment } = environments || {}; + const { environments: singleEnvironment, isDisabled } = environments || {}; const { name } = singleEnvironment || {}; + const labelColor = isDisabled ? 'grey' : 'purple'; switch (environments) { case Array: return environments.map(env => ( <React.Fragment key={env.id} style={{ marginBottom: '5px' }}> <Label - color="purple" + color={labelColor} isTruncated >{env.name} </Label> </React.Fragment> )); default: return ( <React.Fragment> - <Label color="purple" isTruncated> + <Label color={labelColor} isTruncated> {name} </Label> </React.Fragment> ); }