Skip to content

Commit 6b02208

Browse files
authored
Display feed error status in their own popup (#173)
1 parent d75e8d3 commit 6b02208

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/TaskList.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,16 @@
5656
<td v-if="displayColumn('description')">{{ item.description }}</td>
5757

5858
<td v-if="displayColumn('status')">
59-
<v-chip label> {{ getHumanStatus(item) }}</v-chip>
59+
<v-chip v-if="!item.enabled"> Disabled </v-chip>
60+
<v-menu v-else-if="item.status === 'failed'">
61+
<template v-slot:activator="{ props }">
62+
<v-chip v-bind="props" append-icon="mdi-information"> Failed </v-chip>
63+
</template>
64+
<v-sheet class="px-5 py-2" color="background" width="auto" elevation="10" style="font-size: 0.8rem">
65+
{{ item.status_message }}
66+
</v-sheet>
67+
</v-menu>
68+
<v-chip v-else label> {{ getHumanStatus(item) }}</v-chip>
6069
</td>
6170
<td v-if="displayColumn('toggle')">
6271
<v-switch
@@ -235,9 +244,6 @@ export default {
235244
if (task.status === "running") {
236245
return "Running";
237246
}
238-
if (task.status === "failed") {
239-
return `Failed: ${task.status_message}`;
240-
}
241247
return "N/A";
242248
},
243249
displayColumn(name) {

0 commit comments

Comments
 (0)