chore(flows): add links to executions on the flows listing table (#13540)

Closes https://github.com/kestra-io/kestra/issues/13536.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
This commit is contained in:
Saif M
2025-12-11 13:17:48 +03:00
committed by GitHub
parent 69a793b227
commit 1abfa74a16

View File

@@ -176,13 +176,20 @@
:label="t('last execution date')"
>
<template #default="scope">
<DateAgo
v-if="lastExecutionByFlowReady"
:inverted="true"
:date="getLastExecution(scope.row)
?.startDate
"
/>
<router-link
v-if="lastExecutionByFlowReady && getLastExecution(scope.row)"
:to="{
name: 'executions/update',
params: {
namespace: scope.row.namespace,
flowId: scope.row.id,
id: getLastExecution(scope.row).id
}
}"
class="table-link"
>
<DateAgo :date="getLastExecution(scope.row)?.startDate" inverted />
</router-link>
</template>
</el-table-column>
@@ -193,10 +200,22 @@
>
<template #default="scope">
<div
v-if="lastExecutionByFlowReady && getLastExecution(scope.row)?.status"
v-if="lastExecutionByFlowReady && getLastExecution(scope.row)"
class="d-flex justify-content-between align-items-center"
>
<Status :status="getLastExecution(scope.row)?.status" size="small" />
<router-link
:to="{
name: 'executions/update',
params: {
namespace: scope.row.namespace,
flowId: scope.row.id,
id: getLastExecution(scope.row).id
}
}"
class="table-link"
>
<Status :status="getLastExecution(scope.row).status" size="small" />
</router-link>
</div>
</template>
</el-table-column>
@@ -691,4 +710,16 @@
align-items: flex-end;
}
}
.table-link {
cursor: pointer;
& :deep(button) {
cursor: pointer !important;
}
&:hover {
text-decoration: none;
}
}
</style>