Skip to content

Commit

Permalink
Display feed error status in their own popup (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored May 3, 2024
1 parent d75e8d3 commit 6b02208
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@
<td v-if="displayColumn('description')">{{ item.description }}</td>

<td v-if="displayColumn('status')">
<v-chip label> {{ getHumanStatus(item) }}</v-chip>
<v-chip v-if="!item.enabled"> Disabled </v-chip>
<v-menu v-else-if="item.status === 'failed'">
<template v-slot:activator="{ props }">
<v-chip v-bind="props" append-icon="mdi-information"> Failed </v-chip>
</template>
<v-sheet class="px-5 py-2" color="background" width="auto" elevation="10" style="font-size: 0.8rem">
{{ item.status_message }}
</v-sheet>
</v-menu>
<v-chip v-else label> {{ getHumanStatus(item) }}</v-chip>
</td>
<td v-if="displayColumn('toggle')">
<v-switch
Expand Down Expand Up @@ -235,9 +244,6 @@ export default {
if (task.status === "running") {
return "Running";
}
if (task.status === "failed") {
return `Failed: ${task.status_message}`;
}
return "N/A";
},
displayColumn(name) {
Expand Down

0 comments on commit 6b02208

Please sign in to comment.