fix #113
This commit is contained in:
parent
c73b9d671b
commit
38bd0d0823
1 changed files with 10 additions and 9 deletions
|
|
@ -14,14 +14,15 @@
|
|||
</button>
|
||||
</div>
|
||||
<button
|
||||
v-if="tracks.length > 1"
|
||||
class="btn | ml-auto"
|
||||
:class="{ 'btn--secondary': isCompareModeEnabled }"
|
||||
@click="isCompareModeEnabled = !isCompareModeEnabled"
|
||||
>
|
||||
<span>{{
|
||||
isCompareModeEnabled
|
||||
? "Quitter le mode comparer"
|
||||
: "Comparer les pistes"
|
||||
? 'Quitter le mode comparer'
|
||||
: 'Comparer les pistes'
|
||||
}}</span>
|
||||
</button>
|
||||
</header>
|
||||
|
|
@ -46,12 +47,12 @@
|
|||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref, computed, watch } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { usePageStore } from "../../../stores/page";
|
||||
import Interactive360 from "./Interactive360.vue";
|
||||
import { useDialogStore } from "../../../stores/dialog";
|
||||
import { useVirtualSampleStore } from "../../../stores/virtualSample";
|
||||
import { ref, computed, watch } from 'vue';
|
||||
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(
|
||||
|
|
@ -62,7 +63,7 @@ const { isCompareModeEnabled } = storeToRefs(useVirtualSampleStore());
|
|||
|
||||
const tracks = computed(
|
||||
() =>
|
||||
page.value.steps.find((step) => step.slug === "virtual-sample").files
|
||||
page.value.steps.find((step) => step.slug === 'virtual-sample').files
|
||||
.dynamic
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue