Skip to content

Add --no-connect-ui flag to hide connect/disconnect buttons#846

Open
sarataha wants to merge 1 commit intososedoff:mainfrom
sarataha:add-no-connect-ui-flag
Open

Add --no-connect-ui flag to hide connect/disconnect buttons#846
sarataha wants to merge 1 commit intososedoff:mainfrom
sarataha:add-no-connect-ui-flag

Conversation

@sarataha
Copy link

@sarataha sarataha commented Mar 11, 2026

When running pgweb with a pre-configured DATABASE_URL in environments like K8S, the connect/disconnect buttons can cause confusion to users. The existing --lock-session flag hides these buttons but also disables database switching, which is too restrictive when users need to browse multiple databases on the same server.

This adds a --no-connect-ui flag (and PGWEB_NO_CONNECT_UI env var) that hides the connect/disconnect buttons while still allowing users to switch between databases.

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.

1 participant