Skip to content

Commit a3749a7

Browse files
committed
Updated custom tasks warning messages
1 parent 8434285 commit a3749a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/components/v2/projects/CreateWorkflowModal.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
.filter((t) => t.owner);
104104
105105
if (customTasks.length > 0) {
106-
customTaskWarning = `Custom tasks (like the one with id=${customTasks[0].id} and source="${customTasks[0].source}") are not meant to be portable; importing this workflow may not work as expected.`;
106+
customTaskWarning = `Custom tasks (e.g. "${customTasks[0].name}") are not meant to be portable; workflow "${workflow.name}" was imported, but it may not work as expected.`;
107107
}
108108
109109
handleWorkflowImported(workflow, customTaskWarning);

src/routes/v2/projects/[projectId]/workflows/[workflowId]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
.filter((t) => t.owner);
172172
173173
if (customTasks.length > 0) {
174-
customTaskWarning = `Custom tasks (like the one with id=${customTasks[0].id} and source="${customTasks[0].source}") are not meant to be portable; re-importing this workflow may not work as expected.`;
174+
customTaskWarning = `Custom tasks (e.g. "${customTasks[0].name}") are not meant to be portable; re-importing this workflow may not work as expected.`;
175175
}
176176
177177
const response = await fetch(`/api/v2/project/${project.id}/workflow/${workflow.id}/export`, {

0 commit comments

Comments
 (0)