mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
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:
@@ -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>
|
||||
Reference in New Issue
Block a user