Skip to content

Commit

Permalink
Fix loading state to not flash, set delay to 2 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman committed Oct 22, 2024
1 parent 1550c3a commit daa39a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/i18n/locales/en/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,5 @@ export const Strings = {
'pending-workflow-task': 'Pending Workflow Task',
'original-scheduled-time': 'Original Scheduled Time',
'started-time': 'Started Time',
'starting-workflow': 'Starting Workflow',
'starting-workflow': 'Starting Workflow...',
} as const;
5 changes: 2 additions & 3 deletions src/lib/pages/start-workflow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@
encoding: $encoding,
searchAttributes,
});
await new Promise((resolve) => setTimeout(resolve, 1000));
await new Promise((resolve) => setTimeout(resolve, 2000));
goto(routeForWorkflows({ namespace }));
} catch (e) {
error = e?.message || 'Error start Workflow';
} finally {
error = e?.message || 'Error starting Workflow';
loading = false;
}
};
Expand Down

0 comments on commit daa39a2

Please sign in to comment.