Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gearbox/internal/framework/templates/layouts/base.templ
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ func getPath(paths []string) string {
// Returns true if there are no servers configured (initial setup state)
func shouldHideSidebar(ctx context.Context, currentPath string) bool {
// Check if gear status is in context - if not, we're in initial setup
_, hasPluginStatus := auth.GetGearStatusFromContext(ctx)
_, hasPluginOrder := auth.GetGearOrderFromContext(ctx)
_, hasGearStatus := auth.GetGearStatusFromContext(ctx)
_, hasGearOrder := auth.GetGearOrderFromContext(ctx)

// If neither gear status nor order is set, we're in initial setup (no servers)
// Hide the sidebar to provide a cleaner first-time experience
return !hasPluginStatus && !hasPluginOrder
return !hasGearStatus && !hasGearOrder
}

templ Base(title string, user *models.User, currentPath ...string) {
Expand Down
Loading