Skip to content

fix: disable nav entries when no project selected#2

Open
Derroylo wants to merge 2 commits intomainfrom
fix/issue-1
Open

fix: disable nav entries when no project selected#2
Derroylo wants to merge 2 commits intomainfrom
fix/issue-1

Conversation

@Derroylo
Copy link
Owner

Summary

Disables navigation entries (Configuration, Services, Tasks, Tests, Workspaces, Secrets) in the sidebar when no active project has been selected, using the existing project_selected check.

Changes

  • Modified templates/_partials/_sidebar.html.twig to wrap affected nav items with a project_selected condition

Testing

Manually verified template logic — nav items are disabled when no project is active.

Fixes #1

@Derroylo
Copy link
Owner Author

Do not change the href, only set the disabled attribute

@Derroylo
Copy link
Owner Author

Addressed in latest commit — reverted href changes, now only setting the disabled attribute on the affected nav items. The original route links are preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatal error when clicking on configuration, services etc. when no active project has been selected

1 participant