Skip to content

Commit

Permalink
temp fix on Mirador
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaterre committed Apr 25, 2024
1 parent 1077753 commit 2322a96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const toggleMobileMenu = function($event) {
const route = useRoute();
watch(() => route.name, (nextRoute, previousRoute) => {
isMobileMenuOpen.value = false;
console.log(nextRoute, previousRoute);
if (nextRoute !== "facsimile" || previousRoute !== "facsimile") {
window.scrollTo(0,0);
}
Expand Down
9 changes: 7 additions & 2 deletions src/views/FacSimileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ export default {
id: this.windowId,
canvasIndex: this.canvasId,
loadedManifest: this.endpVolumeManifest(),
document: {
collectionDialogOn: false,
}
}],
}, [...textOverlayPlugin]);
this.viewer.store.subscribe(() => {
Expand All @@ -297,6 +300,7 @@ export default {
// test if canvasObject is empty
if (Object.keys(canvasObject).length === 0) {
this.imageNakalaSrc = `${this.nakalaAppService}collection/${this.nakalaDoiImages}`;
} else {
this.imageNakalaSrc = nakalaUrlImageSrc;
}
Expand Down Expand Up @@ -400,13 +404,15 @@ export default {
},
},
mounted() {
this.$store.commit('setEndpVolume', this.$route.params.volumeIndex);
this.$store.commit('setCanvasId', this.$route.params.canvasIndex);
this.endpVolume = this.$route.params.volumeIndex;
this.initMiradorViewer();
},
beforeUnmount() {
this.viewer.unmount();
},
};
</script>
Expand Down Expand Up @@ -796,5 +802,4 @@ tspan {
}
}
</style>

0 comments on commit 2322a96

Please sign in to comment.