Fix: add 'onbeforeunload' if images are uploading, see #1841

This commit is contained in:
Pieter Vander Vennet 2024-03-28 15:55:12 +01:00
parent 1c03e7ab07
commit ce7bc8fb6c
3 changed files with 14 additions and 3 deletions

View file

@ -810,7 +810,7 @@ export default class ThemeViewState implements SpecialVisualizationState {
new MetaTagging(this)
new TitleHandler(this.selectedElement, this.featureProperties, this)
new ChangeToElementsActor(this.changes, this.featureProperties)
new PendingChangesUploader(this.changes, this.selectedElement)
new PendingChangesUploader(this.changes, this.selectedElement, this.imageUploadManager)
new SelectedElementTagsUpdater(this)
new BackgroundLayerResetter(this.mapProperties.rasterLayer, this.availableLayers)
new PreferredRasterLayerSelector(