Skip to content

Commit

Permalink
Manual aborted event on tab close
Browse files Browse the repository at this point in the history
  • Loading branch information
ddjnw1yu committed Nov 20, 2024
1 parent 0f098f0 commit 515b2bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/viewers/Flatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ export default {
},
},
mounted: function() {
EventBus.on('annotation-close', (payload) => {
const currentFlatmap = this.$refs.flatmap;
if (payload?.tabClose && currentFlatmap) {
this.$refs.flatmap.annotationEventCallback({}, { type: 'aborted' })
}
});
EventBus.on("markerUpdate", () => {
this.flatmapMarkerUpdate(undefined);
});
Expand Down

0 comments on commit 515b2bc

Please sign in to comment.