Use Toast instead of alert for notifications

This commit is contained in:
Eugene Burmakin 2025-12-14 00:32:12 +01:00
parent b7f0b7ebc2
commit 1090bcd6e8

View file

@ -1,4 +1,5 @@
import { BaseLayer } from './base_layer' import { BaseLayer } from './base_layer'
import { Toast } from 'maps_maplibre/components/toast'
/** /**
* Points layer for displaying individual location points * Points layer for displaying individual location points
@ -150,7 +151,7 @@ export class PointsLayer extends BaseLayer {
source.setData(data) source.setData(data)
} }
} }
alert('Failed to update point position. Please try again.') Toast.error('Failed to update point position. Please try again.')
} }
this.draggedFeature = null this.draggedFeature = null