mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-07-10 10:23:05 +00:00
Only confirm for non-empty sticky notes
This commit is contained in:
1 parent
1752189e4f
commit
cda160414f
4 files changed
+7
-7
No files matched your search
+1
-1
@@ -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