This commit is contained in:
isUnknown 2024-11-28 15:15:21 +01:00
parent 7764f4651c
commit 0f6b509c33
2 changed files with 9 additions and 1 deletions

View file

@ -4,6 +4,7 @@
v-model:visible="isOpen"
modal
:draggable="false"
dismissableMask="true"
header="Titre du PDF"
class="dialog"
:class="{ 'with-comments': isCommentsOpen }"

View file

@ -4,6 +4,7 @@
v-model:visible="isOpen"
modal
:draggable="false"
dismissableMask="true"
header="Titre du rendu"
class="dialog"
:class="{ 'with-comments': isCommentsOpen }"
@ -74,9 +75,10 @@ import { storeToRefs } from "pinia";
import Dialog from "primevue/dialog";
import DynamicView from "./DynamicView.vue";
import StaticView from "./StaticView.vue";
import { ref } from "vue";
import { ref, watch } from "vue";
import { useVirtualSampleStore } from "../../../stores/virtualSample";
import { useDialogStore } from "../../../stores/dialog";
import { useRoute, useRouter } from "vue-router";
const { file } = defineProps({
file: Object,
@ -86,7 +88,12 @@ const { activeTab, currentFile, step } = storeToRefs(useVirtualSampleStore());
const { isCommentsOpen } = storeToRefs(useDialogStore());
// Variables
const router = useRouter();
const route = useRoute();
const isOpen = ref(true);
watch(isOpen, (newValue) => {
router.push({ name: route.name });
});
</script>
<style scoped>