display action buttons only if the project is ongoing
This commit is contained in:
@@ -24,6 +24,7 @@ onMounted(() => featureStore.initBoard(NUMBER_OF_FEATURES))
|
||||
New feature live every {{ featureStore.taktTime }} days. Finishing in
|
||||
{{ featureStore.eat }} days.
|
||||
</div>
|
||||
<template v-if="!featureStore.isProjectFinished">
|
||||
<div class="row">Strategy of the day:</div>
|
||||
<div class="row">
|
||||
<button @click="featureStore.nextDay('push')">push system</button>
|
||||
@@ -32,6 +33,7 @@ onMounted(() => featureStore.initBoard(NUMBER_OF_FEATURES))
|
||||
problem solving
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<ul class="features-steps">
|
||||
<FeatureStep
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
getMeanQualityIssue,
|
||||
initBoard,
|
||||
isFeatureDone,
|
||||
isProjectFinished,
|
||||
newBacklog,
|
||||
nextDay
|
||||
} from '@/modules/feature/feature-board'
|
||||
@@ -53,6 +54,7 @@ export const useFeatureStore = defineStore('feature', {
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
isProjectFinished: (state) => isProjectFinished(state.features),
|
||||
meanComplexity: (state) => getMeanComplexity(state.features),
|
||||
meanLeadTime: (state) => getMeanLeadTime(state.features),
|
||||
meanQualityIssue: (state) => getMeanQualityIssue(state.features),
|
||||
|
||||
Reference in New Issue
Block a user