feat(overview): update setup guide expansion logic
This commit is contained in:
+3
-1
@@ -598,7 +598,9 @@ export function OverviewDashboard() {
|
|||||||
|
|
||||||
const completedStepCount = startSteps.filter((step) => step.completed).length
|
const completedStepCount = startSteps.filter((step) => step.completed).length
|
||||||
const setupComplete = completedStepCount === startSteps.length
|
const setupComplete = completedStepCount === startSteps.length
|
||||||
const setupGuideExpanded = manualSetupGuideExpanded ?? !setupComplete
|
const setupStatusReady = apiKeysQuery.isFetched && Boolean(user)
|
||||||
|
const setupGuideExpanded =
|
||||||
|
manualSetupGuideExpanded ?? (setupStatusReady && !setupComplete)
|
||||||
const showLeftContentPanels =
|
const showLeftContentPanels =
|
||||||
isAdmin || showApiInfoPanel || showAnnouncementsPanel || showFAQPanel
|
isAdmin || showApiInfoPanel || showAnnouncementsPanel || showFAQPanel
|
||||||
const showContentPanels = showLeftContentPanels || showUptimePanel
|
const showContentPanels = showLeftContentPanels || showUptimePanel
|
||||||
|
|||||||
Reference in New Issue
Block a user