Change console statements to debug or warn

This commit is contained in:
2026-01-27 12:58:36 +07:00
parent 8c58a76030
commit 0212fa359b
8 changed files with 19 additions and 22 deletions

View File

@@ -722,7 +722,7 @@ export default class MapComponent extends Component {
if (this.args.isSidebarOpen) {
// If it's a bookmark, we allow "switching" to it even if sidebar is open
if (clickedBookmark) {
console.log(
console.debug(
'Clicked bookmark while sidebar open (switching):',
clickedBookmark
);
@@ -739,7 +739,7 @@ export default class MapComponent extends Component {
// Normal behavior (sidebar is closed)
if (clickedBookmark) {
console.log('Clicked bookmark:', clickedBookmark);
console.debug('Clicked bookmark:', clickedBookmark);
this.router.transitionTo('place', clickedBookmark);
return;
}

View File

@@ -50,7 +50,7 @@ export default class PlacesSidebar extends Component {
if (confirm(`Delete "${place.title}"?`)) {
try {
await this.storage.removePlace(place);
console.log('Place deleted:', place.title);
console.debug('Place deleted:', place.title);
// Notify parent to refresh map bookmarks
if (this.args.onBookmarkChange) {
@@ -104,7 +104,7 @@ export default class PlacesSidebar extends Component {
try {
const savedPlace = await this.storage.storePlace(placeData);
console.log('Place saved:', placeData.title);
console.debug('Place saved:', placeData.title);
// Notify parent to refresh map bookmarks
if (this.args.onBookmarkChange) {
@@ -131,7 +131,7 @@ export default class PlacesSidebar extends Component {
async updateBookmark(updatedPlace) {
try {
const savedPlace = await this.storage.updatePlace(updatedPlace);
console.log('Place updated:', savedPlace.title);
console.debug('Place updated:', savedPlace.title);
// Notify parent to refresh map/lists
if (this.args.onBookmarkChange) {