tag steps added afterward
This commit is contained in:
@@ -63,7 +63,7 @@ const isSuperiorToEstimation = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<tr v-if="step" class="step-record">
|
<tr v-if="step" class="step-record">
|
||||||
<td class="td-rank">
|
<td class="td-rank" :class="{ 'added-afterward': step.addedAfterward }">
|
||||||
<div class="rank">
|
<div class="rank">
|
||||||
<template v-if="isCurrentStep">
|
<template v-if="isCurrentStep">
|
||||||
<img
|
<img
|
||||||
@@ -113,6 +113,12 @@ $blob-color: $link;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.td-rank {
|
||||||
|
&.added-afterward {
|
||||||
|
background: #fbc124;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.rank {
|
.rank {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -5,4 +5,5 @@ export interface Stepable {
|
|||||||
* estimation in minutes
|
* estimation in minutes
|
||||||
*/
|
*/
|
||||||
estimation: number
|
estimation: number
|
||||||
|
addedAfterward?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export const useTaskStore = defineStore('task-store', {
|
|||||||
|
|
||||||
const newSteps = [
|
const newSteps = [
|
||||||
...task.steps.slice(0, fromStepIndex + 1),
|
...task.steps.slice(0, fromStepIndex + 1),
|
||||||
...steps,
|
...steps.map((step) => ({ ...step, addedAfterward: true })),
|
||||||
...task.steps.slice(fromStepIndex + 1)
|
...task.steps.slice(fromStepIndex + 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user