kanban > steps > virtual sample card : show card only if dynamic or static
This commit is contained in:
parent
eca807aa52
commit
e110c85c69
1 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
<template>
|
<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>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import Images from "./Images.vue";
|
import Images from "./Images.vue";
|
||||||
|
|
@ -7,7 +11,7 @@ import { computed } from "vue";
|
||||||
const { step } = defineProps({ step: Object });
|
const { step } = defineProps({ step: Object });
|
||||||
|
|
||||||
const images = computed(() => {
|
const images = computed(() => {
|
||||||
return step.files?.dynamic?.map((track) => getFrontView(track));
|
return step.files?.dynamic?.map((track) => getFrontView(track)) ?? [];
|
||||||
});
|
});
|
||||||
|
|
||||||
function getFrontView(track) {
|
function getFrontView(track) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue