From 8729e39349f957d95788953404d135899c1613f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Samin?= Date: Wed, 22 Apr 2020 17:10:08 +0200 Subject: [PATCH] feat(api): load workflow without its base64 icon (#5140) Signed-off-by: francois samin --- engine/api/workflow.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/api/workflow.go b/engine/api/workflow.go index 39fb591a16..4783c6984e 100644 --- a/engine/api/workflow.go +++ b/engine/api/workflow.go @@ -72,6 +72,7 @@ func (api *API) getWorkflowHandler() service.Handler { withTemplate := FormBool(r, "withTemplate") withAsCodeEvents := FormBool(r, "withAsCodeEvents") minimal := FormBool(r, "minimal") + withoutIcons := FormBool(r, "withoutIcons") proj, err := project.Load(api.mustDB(), key, project.LoadOptions.WithIntegrations) if err != nil { @@ -81,7 +82,7 @@ func (api *API) getWorkflowHandler() service.Handler { opts := workflow.LoadOptions{ Minimal: minimal, // if true, load only data from table workflow, not pipelines, app, env... DeepPipeline: withDeepPipelines, - WithIcon: true, + WithIcon: !withoutIcons, WithLabels: withLabels, WithAsCodeUpdateEvent: withAsCodeEvents, WithIntegrations: true,