diff --git a/src/components/map/vector/Circles.vue b/src/components/map/vector/Circles.vue index 6cc6c6f..b25dd17 100644 --- a/src/components/map/vector/Circles.vue +++ b/src/components/map/vector/Circles.vue @@ -71,7 +71,7 @@ export default defineComponent({ }, handlePendingUpdates = async () => { - const updates = await useStore().dispatch(ActionTypes.POP_CIRCLE_UPDATES, { + const updates = await store.dispatch(ActionTypes.POP_CIRCLE_UPDATES, { markerSet: props.set.id, amount: 10, }), diff --git a/src/components/map/vector/Lines.vue b/src/components/map/vector/Lines.vue index b78117f..fc22aff 100644 --- a/src/components/map/vector/Lines.vue +++ b/src/components/map/vector/Lines.vue @@ -70,7 +70,7 @@ export default defineComponent({ }, handlePendingUpdates = async () => { - const updates = await useStore().dispatch(ActionTypes.POP_LINE_UPDATES, { + const updates = await store.dispatch(ActionTypes.POP_LINE_UPDATES, { markerSet: props.set.id, amount: 10, }), diff --git a/src/components/map/vector/Markers.vue b/src/components/map/vector/Markers.vue index 29e4ec1..cd9b0a4 100644 --- a/src/components/map/vector/Markers.vue +++ b/src/components/map/vector/Markers.vue @@ -70,7 +70,7 @@ export default defineComponent({ }, handlePendingUpdates = async () => { - const updates = await useStore().dispatch(ActionTypes.POP_MARKER_UPDATES, { + const updates = await store.dispatch(ActionTypes.POP_MARKER_UPDATES, { markerSet: props.set.id, amount: 10, }), diff --git a/src/components/sidebar/FollowTarget.vue b/src/components/sidebar/FollowTarget.vue index 423ea3a..d1550df 100644 --- a/src/components/sidebar/FollowTarget.vue +++ b/src/components/sidebar/FollowTarget.vue @@ -62,7 +62,7 @@ export default defineComponent({ messageHidden = computed(() => store.state.messages.followingHidden), unfollow = () => { - useStore().commit(MutationTypes.CLEAR_FOLLOW_TARGET, undefined); + store.commit(MutationTypes.CLEAR_FOLLOW_TARGET, undefined); }, updatePlayerImage = async () => { image.value = defaultImage; diff --git a/src/leaflet/control/CoordinatesControl.ts b/src/leaflet/control/CoordinatesControl.ts index b4636bd..ceaf6c6 100644 --- a/src/leaflet/control/CoordinatesControl.ts +++ b/src/leaflet/control/CoordinatesControl.ts @@ -60,13 +60,13 @@ export class CoordinatesControl extends Control { if (this.options.showRegion) { this._regionContainer.textContent = '--------------'; - this._regionContainer.dataset.label = useStore().state.messages.locationRegion; + this._regionContainer.dataset.label = store.state.messages.locationRegion; container.appendChild(this._regionContainer); } if (this.options.showChunk) { this._chunkContainer.textContent = '----, ----'; - this._chunkContainer.dataset.label = useStore().state.messages.locationChunk; + this._chunkContainer.dataset.label = store.state.messages.locationChunk; container.appendChild(this._chunkContainer); } diff --git a/src/leaflet/control/LinkControl.ts b/src/leaflet/control/LinkControl.ts index f73d0b7..ddf4a5a 100644 --- a/src/leaflet/control/LinkControl.ts +++ b/src/leaflet/control/LinkControl.ts @@ -39,7 +39,7 @@ export class LinkControl extends Control { copyErrorMessage = computed(() => store.state.messages.copyToClipboardError); linkButton.type = 'button'; - linkButton.title = useStore().state.messages.linkTitle; + linkButton.title = store.state.messages.linkTitle; linkButton.innerHTML = `