wip: Exclude evaluation executions from counting towards limit in UI

This commit is contained in:
Eugene Molodkin 2024-12-27 16:10:41 +01:00
parent 6576357376
commit 795b2961e7
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -74,7 +74,10 @@ const isAnnotationEnabled = computed(
);
const runningExecutionsCount = computed(() => {
return props.executions.filter((execution) => execution.status === 'running').length;
return props.executions.filter(
(execution) =>
execution.status === 'running' && ['webhook', 'trigger'].includes(execution.mode),
).length;
});
watch(

View file

@ -55,7 +55,10 @@ const executionListRef = ref<HTMLElement | null>(null);
const workflowPermissions = computed(() => getResourcePermissions(props.workflow?.scopes).workflow);
const runningExecutionsCount = computed(() => {
return props.executions.filter((execution) => execution.status === 'running').length;
return props.executions.filter(
(execution) =>
execution.status === 'running' && ['webhook', 'trigger'].includes(execution.mode),
).length;
});
watch(