Copilot commented on code in PR #783:
URL:
https://github.com/apache/rocketmq-dashboard/pull/783#discussion_r3701535364
##########
web/src/pages/instance/message.tsx:
##########
@@ -755,7 +752,12 @@ const MessagePage = () => {
footer={
<Flex justify="flex-end" gap={8}>
<Button onClick={closeDetail}>关闭</Button>
- <Button type="primary" icon={<SendOutlined />}
onClick={handleResend}>
+ <Button
+ type="primary"
+ icon={<SendOutlined />}
+ disabled
+ title={RESEND_UNAVAILABLE_MESSAGE}
+ >
重新发送
</Button>
Review Comment:
`title` 在禁用的原生 `<button disabled>` 上通常不会以浏览器 tooltip
的形式展示(也不会被鼠标悬停触发),用户可能看不到“为何不可用”的原因。建议在 footer 里直接渲染一段可见的说明文本(或改用可交互的 Tooltip
包裹方案)来明确告知原因。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]