Skip to content

Commit f0ef6d1

Browse files
authored
Move workflow run loading store to it's own file so it can be imported (#985)
1 parent bc21f1e commit f0ef6d1

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
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.92",
3+
"version": "2.1.93",
44
"type": "module",
55
"description": "Temporal.io UI",
66
"keywords": [

src/lib/layouts/workflow-run-layout.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import { page } from '$app/stores';
3-
import { workflowRun, loading } from '$lib/stores/workflow-run';
3+
import { workflowRun } from '$lib/stores/workflow-run';
4+
import { loading } from '$lib/stores/workflow-run-loading';
45
import { timelineEvents } from '$lib/stores/events';
56
67
import Header from '$lib/layouts/workflow-header.svelte';
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { writable } from 'svelte/store';
2+
3+
export const loading = writable(true);

src/lib/stores/workflow-run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { GetPollersResponse } from '$lib/services/pollers-service';
99
import { decodeURIForSvelte } from '$lib/utilities/encode-uri';
1010
import { toDecodedPendingActivities } from '$lib/models/pending-activities';
1111
import { authUser } from '$lib/stores/auth-user';
12+
import { loading } from '$lib/stores/workflow-run-loading';
1213

1314
export const refresh = writable(0);
1415
const namespace = derived([page], ([$page]) => $page.params.namespace);
@@ -73,7 +74,6 @@ const updateWorkflowRun: StartStopNotifier<{
7374
};
7475

7576
export const updating = writable(true);
76-
export const loading = writable(true);
7777
export const workflowRun = readable<WorkflowRunStore>(
7878
initialWorkflowRun,
7979
updateWorkflowRun,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { onDestroy } from 'svelte';
3-
import { loading } from '$lib/stores/workflow-run';
3+
import { loading } from '$lib/stores/workflow-run-loading';
44
import { clearPreviousEventParameters } from '$lib/stores/previous-events';
55
66
onDestroy(() => {

0 commit comments

Comments
 (0)