fix #79
This commit is contained in:
parent
9b5a61e57d
commit
9d496efd03
3 changed files with 21 additions and 3 deletions
|
|
@ -51,19 +51,21 @@ import { storeToRefs } from "pinia";
|
|||
import { usePageStore } from "../../../stores/page";
|
||||
import Interactive360 from "./Interactive360.vue";
|
||||
import { useDialogStore } from "../../../stores/dialog";
|
||||
import { useVirtualSampleStore } from "../../../stores/virtualSample";
|
||||
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
const { isCommentsOpen, isCommentPanelEnabled, activeTracks } = storeToRefs(
|
||||
useDialogStore()
|
||||
);
|
||||
|
||||
const { isCompareModeEnabled } = storeToRefs(useVirtualSampleStore());
|
||||
|
||||
const tracks = computed(
|
||||
() =>
|
||||
page.value.steps.find((step) => step.slug === "virtual-sample").files
|
||||
.dynamic
|
||||
);
|
||||
|
||||
const isCompareModeEnabled = ref(false);
|
||||
watch(isCompareModeEnabled, (newValue) => {
|
||||
if (newValue) {
|
||||
isCommentsOpen.value = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue