tag steps added afterward

This commit is contained in:
Julien Calixte
2023-08-29 23:21:44 +02:00
parent bcba94fc9f
commit dc323d3e75
3 changed files with 9 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ const isSuperiorToEstimation = computed(() => {
<template>
<tr v-if="step" class="step-record">
<td class="td-rank">
<td class="td-rank" :class="{ 'added-afterward': step.addedAfterward }">
<div class="rank">
<template v-if="isCurrentStep">
<img
@@ -113,6 +113,12 @@ $blob-color: $link;
}
}
.td-rank {
&.added-afterward {
background: #fbc124;
}
}
.rank {
text-align: right;
display: flex;

View File

@@ -5,4 +5,5 @@ export interface Stepable {
* estimation in minutes
*/
estimation: number
addedAfterward?: boolean
}

View File

@@ -32,7 +32,7 @@ export const useTaskStore = defineStore('task-store', {
const newSteps = [
...task.steps.slice(0, fromStepIndex + 1),
...steps,
...steps.map((step) => ({ ...step, addedAfterward: true })),
...task.steps.slice(fromStepIndex + 1)
]