Skip to content

Commit 89eff4c

Browse files
authored
Fix "cancel in progress" alert on event history page (#990)
* only animate in on "cancel in progress" alert fix cancelInProgress reactive prop to be false if event history is updating * 2.1.94
1 parent 4e38380 commit 89eff4c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@temporalio/ui",
3-
"version": "2.1.93",
3+
"version": "2.1.94",
44
"type": "module",
55
"description": "Temporal.io UI",
66
"keywords": [

src/lib/layouts/workflow-header.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { autoRefreshWorkflow } from '$lib/stores/event-view';
77
import { workflowsQuery, workflowsSearch } from '$lib/stores/workflows';
88
import { workflowRun, refresh } from '$lib/stores/workflow-run';
9-
import { eventHistory } from '$lib/stores/events';
9+
import { eventHistory, updating } from '$lib/stores/events';
1010
1111
import {
1212
routeForEventHistory,
@@ -80,6 +80,7 @@
8080
8181
$: cancelInProgress =
8282
$workflowRun?.workflow?.status === 'Running' &&
83+
!$updating &&
8384
$eventHistory.events.some(
8485
(event) => event?.eventType === 'WorkflowExecutionCancelRequested',
8586
);
@@ -129,7 +130,7 @@
129130
{/if}
130131
</div>
131132
{#if cancelInProgress}
132-
<div class="-mt-4 mb-4" transition:fly={{ duration: 200, delay: 100 }}>
133+
<div class="-mt-4 mb-4" in:fly={{ duration: 200, delay: 100 }}>
133134
<Alert icon="info" intent="info" title="Cancel Request Sent">
134135
The request to cancel this Workflow Execution has been sent. If the
135136
Workflow uses the cancellation API, it'll cancel at the next available

0 commit comments

Comments
 (0)