mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Allow deleting UME-synced sub-regions like manual regions.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
467079d6ca
commit
8fa4b2e4ea
3 changed files with 41 additions and 8 deletions
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue