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