Skip to content

Commit

Permalink
migrated 1f050e8
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Mar 11, 2023
1 parent 5471875 commit 472a54c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webclient/src/components/DetailsRoomfinderMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { selectedMap, useDetailsStore } from "@/stores/details";
const state = useDetailsStore();
defineExpose({ loadRoomfinderMap });
defineExpose({
loadRoomfinderMap,
loadRoomfinderModalMap,
});
function loadRoomfinderMap(mapIndex: number, fromUi = false) {
const map = state.data?.maps.roomfinder?.available[mapIndex];
if (!map) {
Expand Down
4 changes: 4 additions & 0 deletions webclient/src/views/DetailsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ onMounted(() => {
coord_counter.value.counter = Object.keys(coords).length;
};
window.addEventListener("storage", updateCoordinateCounter);
window.addEventListener("resize", () => {
roomfinderMap.value.loadRoomfinderMap(state.map.roomfinder.selected_index);
roomfinderMap.value.loadRoomfinderModalMap();
});
updateCoordinateCounter();
nextTick(() => {
Expand Down

0 comments on commit 472a54c

Please sign in to comment.