補上歷史戰績刪除二次確認
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
- 點擊任一筆可開啟得分紀錄彈窗
|
||||
- 彈窗右上角提供 `X` 關閉按鈕,手機更容易操作
|
||||
- 每筆資料可單獨刪除
|
||||
- 刪除前會進行二次確認,降低誤刪風險
|
||||
|
||||
## 本機開發
|
||||
|
||||
|
||||
@@ -53,6 +53,14 @@ export function HistoryPage() {
|
||||
return
|
||||
}
|
||||
|
||||
const confirmedAgain = window.confirm(
|
||||
`請再次確認要刪除這筆戰績:\n${item.leftTeamName} vs ${item.rightTeamName}`,
|
||||
)
|
||||
|
||||
if (!confirmedAgain) {
|
||||
return
|
||||
}
|
||||
|
||||
setDeletingId(item.id)
|
||||
setError('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user