Skip to content

Commit

Permalink
Fix showing job status details
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Mar 6, 2024
1 parent 39e78fc commit 46def79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/corpus/job/JobStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ const isPending = ref(false);
const canRun = computed(
() => canBeReady.value && !isPending.value && !isJobRunning.value,
);
const hasStarted = computed(
() =>
Object.values(jobStatus.value?.status || {}).some(
(status) => status != "none",
) || jobStatus.value?.priority,
);
async function doRunJob() {
isPending.value = true;
Expand Down Expand Up @@ -67,7 +73,7 @@ async function doRunJob() {
class="w-full my-2"
/>

<table v-if="jobStatus?.last_run_started" class="w-full mt-4">
<table v-if="hasStarted" class="w-full mt-4">
<thead></thead>
<tbody>
<tr v-if="jobStatus.errors">
Expand Down

0 comments on commit 46def79

Please sign in to comment.