feat(kanban): hide "Seleccionar Aleatorio" in done columns
The random-pick menu entry is meaningless for done columns — cards there are already finished and now get auto-archived after 30 days (issue 0092). Gate the Menu.Item on !column.is_done so the action only appears in active columns. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Kanban</title>
|
<title>Kanban</title>
|
||||||
<script type="module" crossorigin src="/assets/index-Cdqq92Kx.js"></script>
|
<script type="module" crossorigin src="/assets/index-B70qRZGH.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-b0xjFtx2.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-b0xjFtx2.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -547,6 +547,7 @@ function KanbanColumnImpl({
|
|||||||
</Stack>
|
</Stack>
|
||||||
</Popover.Dropdown>
|
</Popover.Dropdown>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
{!column.is_done && (
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
leftSection={<IconDice5 size={14} />}
|
leftSection={<IconDice5 size={14} />}
|
||||||
data-test="column-random-pick"
|
data-test="column-random-pick"
|
||||||
@@ -555,6 +556,7 @@ function KanbanColumnImpl({
|
|||||||
>
|
>
|
||||||
Seleccionar Aleatorio
|
Seleccionar Aleatorio
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
)}
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
leftSection={<ArchiveIcon size={14} />}
|
leftSection={<ArchiveIcon size={14} />}
|
||||||
onClick={() => onMoveColumnLocation(column.id, isInSidebar ? "board" : "sidebar")}
|
onClick={() => onMoveColumnLocation(column.id, isInSidebar ? "board" : "sidebar")}
|
||||||
|
|||||||
Reference in New Issue
Block a user