mirror of
https://github.com/harness/drone.git
synced 2025-05-08 06:50:20 +08:00
small ui fixes in pipelines (#487)
This commit is contained in:
parent
67883e90e0
commit
ae89113aa9
@ -47,7 +47,7 @@ const Execution = () => {
|
||||
|
||||
useSpaceSSE({
|
||||
space,
|
||||
events: ['execution_updated', 'execution_completed'],
|
||||
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
|
||||
onEvent: data => {
|
||||
if (
|
||||
data?.repo_id === execution?.repo_id &&
|
||||
|
@ -69,7 +69,7 @@ const ExecutionList = () => {
|
||||
|
||||
useSpaceSSE({
|
||||
space,
|
||||
events: ['execution_updated', 'execution_completed'],
|
||||
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
|
||||
onEvent: data => {
|
||||
// ideally this would include number - so we only check for executions on the page - but what if new executions are kicked off? - could check for ids that are higher than the lowest id on the page?
|
||||
if (
|
||||
|
@ -79,7 +79,7 @@ const PipelineList = () => {
|
||||
|
||||
useSpaceSSE({
|
||||
space,
|
||||
events: ['execution_updated', 'execution_completed'],
|
||||
events: ['execution_updated', 'execution_completed', 'execution_canceled', 'execution_running'],
|
||||
onEvent: data => {
|
||||
// should I include pipeline id here? what if a new pipeline is created? coould check for ids that are higher than the lowest id on the page?
|
||||
if (pipelines?.some(pipeline => pipeline.repo_id === data?.repo_id && pipeline.id === data?.pipeline_id)) {
|
||||
@ -105,7 +105,7 @@ const PipelineList = () => {
|
||||
() => [
|
||||
{
|
||||
Header: getString('pipelines.name'),
|
||||
width: 'calc(100% - 210px)',
|
||||
width: 'calc(50% - 105px)',
|
||||
Cell: ({ row }: CellProps<TypesPipeline>) => {
|
||||
const record = row.original
|
||||
return (
|
||||
@ -127,7 +127,7 @@ const PipelineList = () => {
|
||||
},
|
||||
{
|
||||
Header: getString('pipelines.lastExecution'),
|
||||
width: 'calc(50% - 90px)',
|
||||
width: 'calc(50% - 105px)',
|
||||
Cell: ({ row }: CellProps<TypesPipeline>) => {
|
||||
const record = row.original.execution
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user