Allow deleting UME-synced sub-regions like manual regions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-07 14:31:09 +08:00
parent 467079d6ca
commit 8fa4b2e4ea
3 changed files with 41 additions and 8 deletions

View file

@ -2395,7 +2395,7 @@ export function TopologyPage() {
</span>
</span>
</button>
{!umeNav || containerFolder ? (
{!umeNav || containerFolder || Boolean(String(folder.external_ref || "").trim()) ? (
<div className="topo-map-list__actions">
{!containerFolder ? (
<button
@ -2416,7 +2416,9 @@ export function TopologyPage() {
aria-label={t("topology.deleteRegion")}
disabled={
deleteFolderMut.isPending ||
(!!folder.is_system && !containerFolder)
(!!folder.is_system &&
!containerFolder &&
!String(folder.external_ref || "").trim())
}
onClick={() => {
const msg = (