UI: Color status in JobDetails and TaskDetails component

Create a visual connection with the colors used by the indicators.
This commit is contained in:
Pablo Vazquez 2022-07-05 19:57:09 +02:00
parent 66ad722519
commit 44b30e08de
2 changed files with 12 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<dd>{{ jobData.name }}</dd>
<dt class="field-status" title="Status">Status</dt>
<dd>{{ jobData.status }}</dd>
<dd class="field-status-label" :class="'status-' + jobData.status">{{ jobData.status }}</dd>
<dt class="field-type" title="Type">Type</dt>
<dd>{{ jobType ? jobType.label : jobData.type }}</dd>
@ -46,7 +46,6 @@
</dl>
</TabItem>
</TabsWrapper>
</template>
<div v-else class="details-no-item-selected">
@ -208,4 +207,9 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
.field-status-label {
color: var(--indicator-color);
font-weight: bold;
}
</style>

View File

@ -10,7 +10,7 @@
<dd>{{ taskData.name }}</dd>
<dt class="field-status" title="Status">Status</dt>
<dd>{{ taskData.status }}</dd>
<dd class="field-status-label" :class="'status-' + taskData.status">{{ taskData.status }}</dd>
<dt class="field-worker" title="Assigned To">Assigned To</dt>
<dd><worker-link :worker="taskData.worker" /></dd>
@ -91,4 +91,9 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
.field-status-label {
color: var(--indicator-color);
font-weight: bold;
}
</style>