- Prevent delete button from working when there are unsaved changes on a different note - Delete button now checks hasUnsavedChanges before allowing deletion - Only the currently selected note can be deleted when it has unsaved changes - Prevents accidental deletion of other notes when locked