Skip to content

Commit

Permalink
hotfix: add back progress bar for jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Nov 18, 2024
1 parent f5345f9 commit 714dd06
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/components/modules/lists/JobItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@
{{ $t('actions.searchMore') }}<Icon name="search" :scale="0.5" :stroke-width="2" />
</button>
</blockquote>
<div class="text-white number" v-if="item.isRunning()">&nbsp;{{ percentage }} %</div>
<div class="p-2 position-relative" v-if="item.isRunning()">
<div class="progress">
<div
class="progress-bar bg-success progress-bar-animated"
role="progressbar"
aria-valuemin="0"
aria-valuemax="100"
:aria-valuenow="percentage"
:style="`width: ${percentage}%; height: 4px;`"
></div>
</div>
</div>
<b-button
v-if="props.item.isExportable()"
variant="outline-success"
Expand Down Expand Up @@ -81,7 +94,9 @@ const props = defineProps({
default: ''
}
})
const percentage = computed(() => {
return Math.round((props.item.progress || 0) * 100)
})
const hasSearchQuery = computed(() => {
return !!props.item.extra.query
})
Expand Down Expand Up @@ -134,6 +149,9 @@ span.DON {
padding: 0 4px;
border-radius: 2px;
}
.progress {
height: 4px;
}
</style>
<i18n lang="json">
{
Expand Down

0 comments on commit 714dd06

Please sign in to comment.