kanban > steps > virtual sample card : show card only if dynamic or static

This commit is contained in:
isUnknown 2024-12-20 09:24:20 +01:00
parent eca807aa52
commit e110c85c69

View file

@ -1,5 +1,9 @@
<template>
<Images v-if="images.length > 0" :step="step" :images="images" />
<Images
v-if="step.files.dynamic || step.files.static"
:step="step"
:images="images"
/>
</template>
<script setup>
import Images from "./Images.vue";
@ -7,7 +11,7 @@ import { computed } from "vue";
const { step } = defineProps({ step: Object });
const images = computed(() => {
return step.files?.dynamic?.map((track) => getFrontView(track));
return step.files?.dynamic?.map((track) => getFrontView(track)) ?? [];
});
function getFrontView(track) {