mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-24 19:59:36 +00:00
Only confirm for non-empty sticky notes
This commit is contained in:
@@ -111,7 +111,7 @@ export function renderStickyNote(stickyNote, onSave, onDelete) {
|
||||
|
||||
if (closeButton) {
|
||||
makeClosable(() => {
|
||||
if (confirm("Are you sure you want to delete this sticky note?")) {
|
||||
if (stickyNote.content.trim() === "" || confirm("Are you sure you want to delete this sticky note?")) {
|
||||
onDelete();
|
||||
noteElement.remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user