tag steps added afterward
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -5,4 +5,5 @@ export interface Stepable {
|
||||
* estimation in minutes
|
||||
*/
|
||||
estimation: number
|
||||
addedAfterward?: boolean
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user