Skip to content

Commit da29f25

Browse files
authored
fix cancel enabled checks (#1005)
1 parent 1f1fd0b commit da29f25

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/history/index.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import PageTitle from '$lib/components/page-title.svelte';
1212
1313
const workflow = $page.params.workflow;
14+
$: isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
1415
1516
const views = {
1617
feed: WorkflowHistoryFeed,
@@ -21,7 +22,7 @@
2122
</script>
2223

2324
<PageTitle title={`Workflow History | ${workflow}`} url={$page.url.href} />
24-
<WorkflowRunLayout cancelEnabled>
25+
<WorkflowRunLayout cancelEnabled={!isCloud}>
2526
<WorkflowHistoryLayout>
2627
<!-- <svelte:fragment slot="timeline">
2728
<EventHistoryTimelineContainer />

src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import PageTitle from '$lib/components/page-title.svelte';
88
99
const workflow = $page.params.workflow;
10+
$: isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
1011
</script>
1112

1213
<PageTitle title={`Pending Activities | ${workflow}`} url={$page.url.href} />
13-
<WorkflowRunLayout cancelEnabled>
14+
<WorkflowRunLayout cancelEnabled={!isCloud}>
1415
<WorkflowPendingActivities />
1516
</WorkflowRunLayout>

src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/query.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import PageTitle from '$lib/components/page-title.svelte';
88
99
const workflow = $page.params.workflow;
10+
$: isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
1011
</script>
1112

1213
<PageTitle title={`Query | ${workflow}`} url={$page.url.href} />
13-
<WorkflowRunLayout cancelEnabled>
14+
<WorkflowRunLayout cancelEnabled={!isCloud}>
1415
<WorkflowQuery />
1516
</WorkflowRunLayout>

src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import WorkflowRunLayout from '$lib/layouts/workflow-run-layout.svelte';
88
99
const workflow = $page.params.workflow;
10+
$: isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
1011
</script>
1112

1213
<PageTitle title={`Stack Trace | ${workflow}`} url={$page.url.href} />
13-
<WorkflowRunLayout cancelEnabled>
14+
<WorkflowRunLayout cancelEnabled={!isCloud}>
1415
<WorkflowStackTrace />
1516
</WorkflowRunLayout>

src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/workers.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import WorkflowRunLayout from '$lib/layouts/workflow-run-layout.svelte';
88
99
const workflow = $page.params.workflow;
10+
$: isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
1011
</script>
1112

1213
<PageTitle title={`Workers | ${workflow}`} url={$page.url.href} />
13-
<WorkflowRunLayout cancelEnabled>
14+
<WorkflowRunLayout cancelEnabled={!isCloud}>
1415
<WorkflowWorkers />
1516
</WorkflowRunLayout>

src/routes/namespaces/[namespace]/workflows/[email protected]

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import AdvancedVisibilityGuard from '$lib/components/advanced-visibility-guard.svelte';
99
import WorkflowsWithNewSearch from '$lib/pages/workflows-with-new-search.svelte';
1010
11-
const isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
11+
$: isCloud = $page.stuff?.settings?.runtimeEnvironment?.isCloud;
1212
</script>
1313

1414
<PageTitle

0 commit comments

Comments
 (0)