Skip to content

Commit c0617ce

Browse files
Copilotsarg3nt
andcommitted
Rename hasPluginStatus/hasPluginOrder to hasGearStatus/hasGearOrder for consistency
Co-authored-by: sarg3nt <3372486+sarg3nt@users.noreply.github.com>
1 parent f6fdb03 commit c0617ce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • gearbox/internal/framework/templates/layouts

gearbox/internal/framework/templates/layouts/base.templ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ func getPath(paths []string) string {
2727
// Returns true if there are no servers configured (initial setup state)
2828
func shouldHideSidebar(ctx context.Context, currentPath string) bool {
2929
// Check if gear status is in context - if not, we're in initial setup
30-
_, hasPluginStatus := auth.GetGearStatusFromContext(ctx)
31-
_, hasPluginOrder := auth.GetGearOrderFromContext(ctx)
30+
_, hasGearStatus := auth.GetGearStatusFromContext(ctx)
31+
_, hasGearOrder := auth.GetGearOrderFromContext(ctx)
3232

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

3838
templ Base(title string, user *models.User, currentPath ...string) {

0 commit comments

Comments
 (0)