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 name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -547,14 +547,16 @@ function KanbanColumnImpl({
|
||||
</Stack>
|
||||
</Popover.Dropdown>
|
||||
</Popover>
|
||||
<Menu.Item
|
||||
leftSection={<IconDice5 size={14} />}
|
||||
data-test="column-random-pick"
|
||||
disabled={cards.filter((c) => !c.locked).length === 0}
|
||||
onClick={() => onPickRandom(column.id)}
|
||||
>
|
||||
Seleccionar Aleatorio
|
||||
</Menu.Item>
|
||||
{!column.is_done && (
|
||||
<Menu.Item
|
||||
leftSection={<IconDice5 size={14} />}
|
||||
data-test="column-random-pick"
|
||||
disabled={cards.filter((c) => !c.locked).length === 0}
|
||||
onClick={() => onPickRandom(column.id)}
|
||||
>
|
||||
Seleccionar Aleatorio
|
||||
</Menu.Item>
|
||||
)}
|
||||
<Menu.Item
|
||||
leftSection={<ArchiveIcon size={14} />}
|
||||
onClick={() => onMoveColumnLocation(column.id, isInSidebar ? "board" : "sidebar")}
|
||||
|
||||
Reference in New Issue
Block a user