Skip to content

Commit

Permalink
feat(ui): add an attempt(s) column to the taskrun page
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Sep 12, 2023
1 parent 5f3045e commit 75b0551
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ui/src/components/taskruns/TaskRuns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@
</template>
</el-table-column>

<el-table-column prop="attempts" :label="$t('attempts')">
<template #default="scope">
{{ scope.row.attempts ? scope.row.attempts.length : 0 }}
</template>
</el-table-column>

<el-table-column prop="state.current" sortable="custom" :sort-orders="['ascending', 'descending']" :label="$t('state')">
<template #default="scope">
<status :status="scope.row.state.current" size="small" />
Expand Down
6 changes: 4 additions & 2 deletions ui/src/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@
},
"date format": "Date format",
"timezone": "Timezone",
"add task": "Add a task"
"add task": "Add a task",
"attempts": "Attempt(s)"
},
"fr": {
"id": "Identifiant",
Expand Down Expand Up @@ -987,7 +988,8 @@
},
"date format": "Format de date",
"timezone": "Fuseau horaire",
"add task": "Ajouter une tâche"
"add task": "Ajouter une tâche",
"attempts": "Tentative(s)"
}
}

0 comments on commit 75b0551

Please sign in to comment.