This commit is contained in:
isUnknown 2024-11-28 14:45:45 +01:00
parent cca389f1b0
commit 7764f4651c
17 changed files with 40 additions and 47 deletions

View file

@ -65,13 +65,6 @@
>
<span class="sr-only">Afficher les commentaires</span>
</button>
<Comments
v-if="isCommentsOpen"
:current-page-index="currentPageIndex"
:file="file"
:comments="file.comments"
@update:file="changeFile"
/>
</template>
</Dialog>
</template>
@ -82,21 +75,18 @@ import Dialog from "primevue/dialog";
import DynamicView from "./DynamicView.vue";
import StaticView from "./StaticView.vue";
import { ref } from "vue";
import { useDialogStore } from "../../../stores/dialog";
import { useVirtualSampleStore } from "../../../stores/virtualSample";
import { usePageStore } from "../../../stores/page";
import { useDialogStore } from "../../../stores/dialog";
const { file } = defineProps({
file: Object,
});
const { page } = usePageStore();
const { comments } = storeToRefs(useDialogStore());
const { activeTab, currentFile, step } = storeToRefs(useVirtualSampleStore());
const { isCommentsOpen } = storeToRefs(useDialogStore());
// Variables
const isOpen = ref(true);
const isCommentsOpen = ref(false);
</script>
<style scoped>