mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
improvements
This commit is contained in:
parent
d202818f42
commit
54def95727
@ -35,10 +35,10 @@ export const PlaygroundResultFeatureDetails = ({
|
|||||||
const reason =
|
const reason =
|
||||||
feature.isEnabled === 'unevaluated'
|
feature.isEnabled === 'unevaluated'
|
||||||
? 'custom strategies are not evaluated yet'
|
? 'custom strategies are not evaluated yet'
|
||||||
|
: !feature.isEnabledInCurrentEnvironment
|
||||||
|
? 'the environment is disabled'
|
||||||
: feature.isEnabled
|
: feature.isEnabled
|
||||||
? 'at least one strategy is True'
|
? 'at least one strategy is True'
|
||||||
: feature?.isEnabledInCurrentEnvironment
|
|
||||||
? 'the environment is disabled'
|
|
||||||
: 'all strategies are False';
|
: 'all strategies are False';
|
||||||
|
|
||||||
const color =
|
const color =
|
||||||
|
@ -21,7 +21,7 @@ export const PlaygroundResultFeatureStrategyList = ({
|
|||||||
return (
|
return (
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={
|
condition={
|
||||||
!feature.isEnabled && feature.isEnabledInCurrentEnvironment
|
!feature.isEnabledInCurrentEnvironment
|
||||||
}
|
}
|
||||||
show={
|
show={
|
||||||
<WrappedPlaygroundResultStrategyList
|
<WrappedPlaygroundResultStrategyList
|
||||||
|
@ -3,7 +3,7 @@ import { Box, styled } from '@mui/material';
|
|||||||
import { PlaygroundResultChip } from '../PlaygroundResultChip/PlaygroundResultChip';
|
import { PlaygroundResultChip } from '../PlaygroundResultChip/PlaygroundResultChip';
|
||||||
|
|
||||||
interface IFeatureStatusCellProps {
|
interface IFeatureStatusCellProps {
|
||||||
enabled: boolean;
|
enabled: boolean | 'unknown';
|
||||||
}
|
}
|
||||||
|
|
||||||
const StyledCellBox = styled(Box)(({ theme }) => ({
|
const StyledCellBox = styled(Box)(({ theme }) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user