Skip to content

fix: show Resources tab for reverse proxy websites#12271

Open
jakub961241 wants to merge 2 commits into1Panel-dev:dev-v2from
jakub961241:fix/proxy-resource-tab-12139
Open

fix: show Resources tab for reverse proxy websites#12271
jakub961241 wants to merge 2 commits into1Panel-dev:dev-v2from
jakub961241:fix/proxy-resource-tab-12139

Conversation

@jakub961241
Copy link

Summary

Fixes #12139 - Reverse proxy websites don't show the "Resources" tab, so users can't unlink or switch databases.

Root Cause

The Resources tab v-if condition only allowed 'runtime' and 'static' types:

v-if="website.type === 'runtime' || website.type === 'static'"

Proxy websites (type === 'proxy') were excluded, making it impossible to manage linked databases.

Fix

Added || website.type === 'proxy' to both conditions:

  • config/basic/index.vue - tab pane visibility
  • config/basic/resource/index.vue - database change form

Changed files

  • frontend/src/views/website/website/config/basic/index.vue (+1, -1)
  • frontend/src/views/website/website/config/basic/resource/index.vue (+1, -1)
fix: Show Resources tab for reverse proxy websites to allow database management (#12139)

The Resources tab (for managing linked databases) was only shown for
'runtime' and 'static' website types. Users who created a website with
a database then switched to reverse proxy mode could not unlink or
delete the database because the tab was hidden.

Added 'proxy' to the v-if conditions in both:
- config/basic/index.vue (tab visibility)
- config/basic/resource/index.vue (database change form)

Fixes 1Panel-dev#12139
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 22, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zhengkunwang223 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

The Stop button was disabled for apps in 'ReStarting' status because
the condition only allowed 'Running'. Apps stuck in a restart loop
(e.g., due to DB connection issues) could not be stopped.

Added 'ReStarting' to the allowed statuses for the Stop operation.

Closes 1Panel-dev#12061
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] When the site is in reverse proxy mode, the “Resources” option is missing, making it impossible to delete or switch the database

1 participant