fix(a11y): add confirmation dialog for saved view delete
This commit is contained in:
parent
00fd39f594
commit
360ef367d0
@ -116,7 +116,7 @@ function SearchPageInner() {
|
|||||||
</Link>
|
</Link>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => void handleDeleteSavedView(view.id)}
|
onClick={() => { if (window.confirm('Remove this saved view?')) void handleDeleteSavedView(view.id); }}
|
||||||
style={{ color: "var(--nl-text-secondary)", background: "none", border: "none", cursor: "pointer", fontSize: "0.75rem" }}
|
style={{ color: "var(--nl-text-secondary)", background: "none", border: "none", cursor: "pointer", fontSize: "0.75rem" }}
|
||||||
>
|
>
|
||||||
Remove
|
Remove
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user