mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
feat: 看板列表编辑和删除改为图标按钮
This commit is contained in:
@@ -1009,9 +1009,15 @@ ORDER BY reward_points DESC, score DESC`,
|
|||||||
title={<span style={{ fontWeight: 600 }}>{list.name}</span>}
|
title={<span style={{ fontWeight: 600 }}>{list.name}</span>}
|
||||||
extra={
|
extra={
|
||||||
<Space size={6}>
|
<Space size={6}>
|
||||||
<Button size="small" onClick={() => setEditingListId(list.id)} icon={<EditOutlined />}>
|
<Button
|
||||||
{t("board.editList")}
|
size="small"
|
||||||
</Button>
|
type="text"
|
||||||
|
shape="circle"
|
||||||
|
onClick={() => setEditingListId(list.id)}
|
||||||
|
icon={<EditOutlined />}
|
||||||
|
aria-label={t("board.editList")}
|
||||||
|
title={t("board.editList")}
|
||||||
|
/>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={t("board.removeListConfirm")}
|
title={t("board.removeListConfirm")}
|
||||||
onConfirm={() => removeList(board.id, list.id)}
|
onConfirm={() => removeList(board.id, list.id)}
|
||||||
@@ -1019,12 +1025,14 @@ ORDER BY reward_points DESC, score DESC`,
|
|||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
|
type="text"
|
||||||
|
shape="circle"
|
||||||
danger
|
danger
|
||||||
icon={<DeleteOutlined />}
|
icon={<DeleteOutlined />}
|
||||||
disabled={!canManage || board.lists.length <= 1}
|
disabled={!canManage || board.lists.length <= 1}
|
||||||
>
|
aria-label={t("board.removeList")}
|
||||||
{t("board.removeList")}
|
title={t("board.removeList")}
|
||||||
</Button>
|
/>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</Space>
|
</Space>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user