♻️ (feature step) naming conditions

This commit is contained in:
Julien Calixte
2023-07-22 07:28:46 +02:00
parent 601f41d667
commit 457d2e7d5b

View File

@@ -8,6 +8,10 @@ const props = defineProps<{
const remainingBlueBuckets = computed(() => const remainingBlueBuckets = computed(() =>
Math.max(0, props.step.blueBuckets - props.step.featuresDone.length) Math.max(0, props.step.blueBuckets - props.step.featuresDone.length)
) )
const hasFeaturesInProgress = computed(
() => props.step.featuresInProgress.length > 0
)
const hasFeaturesDone = computed(() => props.step.featuresInProgress.length > 0)
</script> </script>
<template> <template>
@@ -15,7 +19,7 @@ const remainingBlueBuckets = computed(() =>
<header>{{ step.title }}</header> <header>{{ step.title }}</header>
<section class="doing"> <section class="doing">
<h5>📝</h5> <h5>📝</h5>
<ul v-if="step.featuresInProgress.length > 0"> <ul v-if="hasFeaturesInProgress">
<li v-for="feature in step.featuresInProgress" :key="feature"> <li v-for="feature in step.featuresInProgress" :key="feature">
{{ feature }} {{ feature }}
</li> </li>
@@ -23,7 +27,7 @@ const remainingBlueBuckets = computed(() =>
</section> </section>
<section class="done"> <section class="done">
<h5>📝</h5> <h5>📝</h5>
<ul v-if="step.featuresDone.length > 0"> <ul v-if="hasFeaturesDone">
<li v-for="feature in step.featuresDone" :key="feature"> <li v-for="feature in step.featuresDone" :key="feature">
{{ feature }} {{ feature }}
</li> </li>