Skip to content

Commit 8729e39

Browse files
authored
feat(api): load workflow without its base64 icon (#5140)
Signed-off-by: francois samin <[email protected]>
1 parent 694579e commit 8729e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/api/workflow.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func (api *API) getWorkflowHandler() service.Handler {
7272
withTemplate := FormBool(r, "withTemplate")
7373
withAsCodeEvents := FormBool(r, "withAsCodeEvents")
7474
minimal := FormBool(r, "minimal")
75+
withoutIcons := FormBool(r, "withoutIcons")
7576

7677
proj, err := project.Load(api.mustDB(), key, project.LoadOptions.WithIntegrations)
7778
if err != nil {
@@ -81,7 +82,7 @@ func (api *API) getWorkflowHandler() service.Handler {
8182
opts := workflow.LoadOptions{
8283
Minimal: minimal, // if true, load only data from table workflow, not pipelines, app, env...
8384
DeepPipeline: withDeepPipelines,
84-
WithIcon: true,
85+
WithIcon: !withoutIcons,
8586
WithLabels: withLabels,
8687
WithAsCodeUpdateEvent: withAsCodeEvents,
8788
WithIntegrations: true,

0 commit comments

Comments
 (0)