fix #29
This commit is contained in:
parent
7764f4651c
commit
0f6b509c33
2 changed files with 9 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
v-model:visible="isOpen"
|
||||
modal
|
||||
:draggable="false"
|
||||
dismissableMask="true"
|
||||
header="Titre du PDF"
|
||||
class="dialog"
|
||||
:class="{ 'with-comments': isCommentsOpen }"
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue