mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: now onboarding will show up in correct times (#8214)
Feature table was not appearing, when onboarding flag was off.
This commit is contained in:
parent
1296327c03
commit
553e04994e
@ -114,12 +114,14 @@ export const ProjectFeatureToggles = ({
|
|||||||
|
|
||||||
const isPlaceholder = Boolean(initialLoad || (loading && total));
|
const isPlaceholder = Boolean(initialLoad || (loading && total));
|
||||||
|
|
||||||
const isOnboarded =
|
const notOnboarding =
|
||||||
onboardingUIEnabled && project.onboardingStatus.status === 'onboarded';
|
!onboardingUIEnabled ||
|
||||||
const isNotOnboarded =
|
(onboardingUIEnabled &&
|
||||||
|
project.onboardingStatus.status === 'onboarded');
|
||||||
|
const isOnboarding =
|
||||||
onboardingUIEnabled && project.onboardingStatus.status !== 'onboarded';
|
onboardingUIEnabled && project.onboardingStatus.status !== 'onboarded';
|
||||||
const hasFeaturesOrOnboarded =
|
const showFeaturesTable =
|
||||||
(total !== undefined && total > 0) || isOnboarded;
|
(total !== undefined && total > 0) || notOnboarding;
|
||||||
|
|
||||||
const columns = useMemo(
|
const columns = useMemo(
|
||||||
() => [
|
() => [
|
||||||
@ -406,7 +408,7 @@ export const ProjectFeatureToggles = ({
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={isNotOnboarded}
|
condition={isOnboarding}
|
||||||
show={
|
show={
|
||||||
<ProjectOnboarding
|
<ProjectOnboarding
|
||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
@ -415,7 +417,7 @@ export const ProjectFeatureToggles = ({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={hasFeaturesOrOnboarded}
|
condition={showFeaturesTable}
|
||||||
show={
|
show={
|
||||||
<PageContent
|
<PageContent
|
||||||
disableLoading
|
disableLoading
|
||||||
|
Loading…
Reference in New Issue
Block a user