mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: show 2 insights components to pro (#7207)
Currently it was showing only users. Now showing 2.
This commit is contained in:
parent
3daa731ed6
commit
e79e36daae
@ -145,46 +145,38 @@ export const InsightsCharts: VFC<IChartsProps> = ({
|
|||||||
</ChartWidget>
|
</ChartWidget>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<Widget {...chartInfo.totalFlags}>
|
||||||
|
<FlagStats
|
||||||
|
count={showAllProjects ? flags.total : summary.total}
|
||||||
|
flagsPerUser={
|
||||||
|
showAllProjects ? getFlagsPerUser(flags, users) : ''
|
||||||
|
}
|
||||||
|
isLoading={loading}
|
||||||
|
/>
|
||||||
|
</Widget>
|
||||||
|
<ConditionallyRender
|
||||||
|
condition={showAllProjects}
|
||||||
|
show={
|
||||||
|
<ChartWidget {...chartInfo.flags}>
|
||||||
|
<FlagsChart
|
||||||
|
flagTrends={flagTrends}
|
||||||
|
isLoading={loading}
|
||||||
|
/>
|
||||||
|
</ChartWidget>
|
||||||
|
}
|
||||||
|
elseShow={
|
||||||
|
<ChartWidget {...chartInfo.flagsPerProject}>
|
||||||
|
<FlagsProjectChart
|
||||||
|
projectFlagTrends={groupedProjectsData}
|
||||||
|
isLoading={loading}
|
||||||
|
/>
|
||||||
|
</ChartWidget>
|
||||||
|
}
|
||||||
|
/>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={isEnterprise()}
|
condition={isEnterprise()}
|
||||||
show={
|
show={
|
||||||
<>
|
<>
|
||||||
<Widget {...chartInfo.totalFlags}>
|
|
||||||
<FlagStats
|
|
||||||
count={
|
|
||||||
showAllProjects
|
|
||||||
? flags.total
|
|
||||||
: summary.total
|
|
||||||
}
|
|
||||||
flagsPerUser={
|
|
||||||
showAllProjects
|
|
||||||
? getFlagsPerUser(flags, users)
|
|
||||||
: ''
|
|
||||||
}
|
|
||||||
isLoading={loading}
|
|
||||||
/>
|
|
||||||
</Widget>
|
|
||||||
<ConditionallyRender
|
|
||||||
condition={showAllProjects}
|
|
||||||
show={
|
|
||||||
<ChartWidget {...chartInfo.flags}>
|
|
||||||
<FlagsChart
|
|
||||||
flagTrends={flagTrends}
|
|
||||||
isLoading={loading}
|
|
||||||
/>
|
|
||||||
</ChartWidget>
|
|
||||||
}
|
|
||||||
elseShow={
|
|
||||||
<ChartWidget {...chartInfo.flagsPerProject}>
|
|
||||||
<FlagsProjectChart
|
|
||||||
projectFlagTrends={
|
|
||||||
groupedProjectsData
|
|
||||||
}
|
|
||||||
isLoading={loading}
|
|
||||||
/>
|
|
||||||
</ChartWidget>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Widget {...chartInfo.averageHealth}>
|
<Widget {...chartInfo.averageHealth}>
|
||||||
<HealthStats
|
<HealthStats
|
||||||
value={summary.averageHealth}
|
value={summary.averageHealth}
|
||||||
|
Loading…
Reference in New Issue
Block a user